fix: Fix unstable msg dispatcher ut (#29925)

This fix will not augment the execution time of unit tests, but solely
enhances tolerance for waiting for failure.

issue: https://github.com/milvus-io/milvus/issues/29921

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/29665/head
yihao.dai 2024-01-14 10:40:52 +08:00 committed by GitHub
parent 073de855b3
commit 8febbc79bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ func TestManager(t *testing.T) {
go c.Run()
assert.Eventually(t, func() bool {
return c.Num() == 1 // expected merged
}, 300*time.Millisecond, 10*time.Millisecond)
}, 3*time.Second, 10*time.Millisecond)
assert.NotPanics(t, func() {
c.Close()