Remove time guessing.

This commit is contained in:
jregan
2020-04-22 13:12:40 -07:00
parent b9053655db
commit 3786db2dba
2 changed files with 18 additions and 6 deletions

View File

@@ -6,7 +6,6 @@ package compiler_test
import (
"path/filepath"
"testing"
"time"
"sigs.k8s.io/kustomize/api/filesys"
. "sigs.k8s.io/kustomize/api/internal/plugins/compiler"
@@ -30,7 +29,7 @@ func TestCompiler(t *testing.T) {
if err != nil {
t.Error(err)
}
if !FileYoungerThan(expectObj, time.Second) {
if !FileExists(expectObj) {
t.Errorf("didn't find expected obj file %s", expectObj)
}
c.Cleanup()
@@ -49,7 +48,7 @@ func TestCompiler(t *testing.T) {
if err != nil {
t.Error(err)
}
if !FileYoungerThan(expectObj, time.Second) {
if !FileExists(expectObj) {
t.Errorf("didn't find expected obj file %s", expectObj)
}
c.Cleanup()