Skip to content

Commit

Permalink
apps: update generations in extended test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Oct 4, 2017
1 parent 64a4c7b commit 78b3c01
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/extended/deployments/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,10 @@ var _ = g.Describe("[Feature:DeploymentConfig] deploymentconfigs", func() {
generation = strings.Trim(generation, "\"")
g.By(fmt.Sprintf("checking the generation for %s: %s", resource, generation))

return strings.Contains(generation, "2") && strings.Contains(version, "1"), nil
return strings.Contains(generation, "1") && strings.Contains(version, "1"), nil
})
if err == wait.ErrWaitTimeout {
err = fmt.Errorf("expected generation: 2, got: %s, expected latestVersion: 1, got: %s", generation, version)
err = fmt.Errorf("expected generation: 1, got: %s, expected latestVersion: 1, got: %s", generation, version)
}
o.Expect(err).NotTo(o.HaveOccurred())

Expand All @@ -613,10 +613,10 @@ var _ = g.Describe("[Feature:DeploymentConfig] deploymentconfigs", func() {
generation = strings.Trim(generation, "\"")
g.By(fmt.Sprintf("checking the generation for %s: %s", resource, generation))

return strings.Contains(generation, "3"), nil
return strings.Contains(generation, "2"), nil
})
if err == wait.ErrWaitTimeout {
err = fmt.Errorf("expected generation: 3, got: %s", generation)
err = fmt.Errorf("expected generation: 2, got: %s", generation)
}
o.Expect(err).NotTo(o.HaveOccurred())

Expand All @@ -640,10 +640,10 @@ var _ = g.Describe("[Feature:DeploymentConfig] deploymentconfigs", func() {
generation = strings.Trim(generation, "\"")
g.By(fmt.Sprintf("checking the generation for %s: %s", resource, generation))

return strings.Contains(generation, "4") && strings.Contains(version, "2"), nil
return strings.Contains(generation, "3") && strings.Contains(version, "2"), nil
})
if err == wait.ErrWaitTimeout {
err = fmt.Errorf("expected generation: 4, got: %s, expected latestVersion: 2, got: %s", generation, version)
err = fmt.Errorf("expected generation: 3, got: %s, expected latestVersion: 2, got: %s", generation, version)
}
o.Expect(err).NotTo(o.HaveOccurred())

Expand Down

0 comments on commit 78b3c01

Please sign in to comment.