Commit 32387d12 authored by Aaron Crickenberger's avatar Aaron Crickenberger

hack/e2e_test.go's tester shouldn't stat files from the future

parent a1afc024
...@@ -267,7 +267,7 @@ func TestGetKubetest(t *testing.T) { ...@@ -267,7 +267,7 @@ func TestGetKubetest(t *testing.T) {
stat: pk, stat: pk,
path: true, path: true,
age: 100, age: time.Second,
upgraded: true, upgraded: true,
touched: true, touched: true,
goPath: gp, goPath: gp,
...@@ -281,7 +281,7 @@ func TestGetKubetest(t *testing.T) { ...@@ -281,7 +281,7 @@ func TestGetKubetest(t *testing.T) {
stat: pk, stat: pk,
path: true, path: true,
age: 100, age: time.Second,
upgraded: false, upgraded: false,
touched: false, touched: false,
goPath: gpk, goPath: gpk,
...@@ -295,7 +295,7 @@ func TestGetKubetest(t *testing.T) { ...@@ -295,7 +295,7 @@ func TestGetKubetest(t *testing.T) {
stat: pk, stat: pk,
path: true, path: true,
age: 100, age: time.Second,
upgraded: true, upgraded: true,
touched: false, touched: false,
goPath: gpk, goPath: gpk,
...@@ -314,7 +314,7 @@ func TestGetKubetest(t *testing.T) { ...@@ -314,7 +314,7 @@ func TestGetKubetest(t *testing.T) {
if p != c.stat { if p != c.stat {
return nil, fmt.Errorf("Failed to find %s", p) return nil, fmt.Errorf("Failed to find %s", p)
} }
return FileInfo{time.Now().Add(c.age)}, nil return FileInfo{time.Now().Add(c.age * -1)}, nil
}, },
func(name string) (string, error) { func(name string) (string, error) {
if c.path { if c.path {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment