Fix TestConfigFromRemote/close_manager ut is not stable (#24279)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/24289/head
congqixia 2023-05-22 09:59:25 +08:00 committed by GitHub
parent ceda0ed598
commit 7e9ef36de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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)
})
}