test(storage): Avoid panic in test when writing to closed channel

This commit is contained in:
Louis Ruch authored and Timothy Messier committed 2023-05-31 12:18:17 +00:00
1 parent af8e4d63be
commit 042c46e00e
4 files changed
+50 -6

No files matched your search

+10
View File
@@ -400,6 +400,16 @@ func TestCode_Both_String_Info(t *testing.T) {
c: Closed,
want: Closed,
},
{
name: "ExternalPlugin",
c: ExternalPlugin,
want: ExternalPlugin,
},
{
name: "ChecksumMismatch",
c: ChecksumMismatch,
want: ChecksumMismatch,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {