diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index c6a2e3b39..2cee66f2f 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -97,6 +97,9 @@ func TestPersistConfig(t *testing.T) { conf, cleanup := testutil.InitConfig(t) defer cleanup(t) + conf.SetLoadedConfigPath(conf.LoadedConfigPath() + ".new") + conf.SetKubeConfigPath(conf.KubeConfigPath() + ".new") + err := conf.PersistConfig(true) require.NoError(t, err)