fix fd leaks and failed file removing for test directory
This commit is contained in:
@@ -522,6 +522,7 @@ func writeKubeConfigForWardleServerToKASConnection(t *testing.T, kubeClientConfi
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
defer wardleToKASKubeConfigFile.Close()
|
||||
return wardleToKASKubeConfigFile.Name()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user