Skip to content

Commit

Permalink
test: fix test TestChannelMap (#46486)
Browse files Browse the repository at this point in the history
close #46420
  • Loading branch information
jiyfhust authored Aug 30, 2023
1 parent a631d2f commit d1483b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func assertChannel[T any](t *testing.T, ch <-chan T, items ...T) {
select {
case item, ok := <-ch:
assert.False(t, ok, "channel not closed: more item %v", item)
default:
case <-time.After(50 * time.Microsecond):
t.Fatal("channel not closed: blocked")
}
}
Expand Down

0 comments on commit d1483b8

Please sign in to comment.