Remove race in tests.

This commit is contained in:
jregan
2020-05-23 17:51:32 -07:00
parent d2c205b082
commit a193129920
3 changed files with 3 additions and 16 deletions

View File

@@ -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)
}
}