Skip to content

Commit

Permalink
Ease debugging of TestBatchSliceOfStrings()
Browse files Browse the repository at this point in the history
Co-authored-by: alvar <[email protected]>
  • Loading branch information
Al2Klimov and oxzi authored Aug 16, 2024
1 parent 4a5fd28 commit 45590ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func TestBatchSliceOfStrings(t *testing.T) {
}

select {
case _, ok := <-batches:
require.False(t, ok, "receiving from channel should not return anything")
case out, ok := <-batches:
require.False(t, ok, "receiving from channel should not return anything, received %q", out)
case <-time.After(10 * time.Millisecond):
require.Fail(t, "receiving should not block")
}
Expand Down

0 comments on commit 45590ff

Please sign in to comment.