test(storage): Avoid panic in test when writing to closed channel
This commit is contained in:
1 parent
af8e4d63be
commit
042c46e00e
4 files changed
+50
-6
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user