mirror of https://github.com/milvus-io/milvus.git
Fix TestConfigFromRemote/close_manager ut is not stable (#24279)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/24289/head
parent
ceda0ed598
commit
7e9ef36de4
|
@ -134,9 +134,7 @@ func TestConfigFromRemote(t *testing.T) {
|
|||
client.KV.Put(ctx, "test/config/test/etcd", "value2")
|
||||
assert.Eventually(t, func() bool {
|
||||
_, err = mgr.GetConfig("test.etcd")
|
||||
return err.Error() == "key not found: test.etcd"
|
||||
return err != nil && err.Error() == "key not found: test.etcd"
|
||||
}, 300*time.Millisecond, 10*time.Millisecond)
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue