Skip to content

Commit

Permalink
hack/e2e_test.go's tester shouldn't stat files from the future
Browse files Browse the repository at this point in the history
  • Loading branch information
spiffxp committed Feb 15, 2017
1 parent a1afc02 commit 32387d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hack/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func TestGetKubetest(t *testing.T) {

stat: pk,
path: true,
age: 100,
age: time.Second,
upgraded: true,
touched: true,
goPath: gp,
Expand All @@ -281,7 +281,7 @@ func TestGetKubetest(t *testing.T) {

stat: pk,
path: true,
age: 100,
age: time.Second,
upgraded: false,
touched: false,
goPath: gpk,
Expand All @@ -295,7 +295,7 @@ func TestGetKubetest(t *testing.T) {

stat: pk,
path: true,
age: 100,
age: time.Second,
upgraded: true,
touched: false,
goPath: gpk,
Expand All @@ -314,7 +314,7 @@ func TestGetKubetest(t *testing.T) {
if p != c.stat {
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) {
if c.path {
Expand Down

0 comments on commit 32387d1

Please sign in to comment.