未验证 提交 7e9ef36d 编写于 作者: C congqixia 提交者: GitHub

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

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 ceda0ed5
......@@ -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)
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册