diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 94acb44b62838450271de9a37a27450205f53e14..48d1f2eec4c2b46d91b4a9c2088dbb2350d7a081 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -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) - }) - }