mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Remove race in tests.
This commit is contained in:
@@ -33,10 +33,6 @@ func TestCompiler(t *testing.T) {
|
||||
if !utils.FileExists(expectObj) {
|
||||
t.Errorf("didn't find expected obj file %s", expectObj)
|
||||
}
|
||||
c.Cleanup()
|
||||
if utils.FileExists(expectObj) {
|
||||
t.Errorf("obj file '%s' should be gone", expectObj)
|
||||
}
|
||||
|
||||
c.SetGVK("builtin", "", "SecretGenerator")
|
||||
expectObj = filepath.Join(
|
||||
@@ -52,8 +48,4 @@ func TestCompiler(t *testing.T) {
|
||||
if !utils.FileExists(expectObj) {
|
||||
t.Errorf("didn't find expected obj file %s", expectObj)
|
||||
}
|
||||
c.Cleanup()
|
||||
if utils.FileExists(expectObj) {
|
||||
t.Errorf("obj file '%s' should be gone", expectObj)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user