Skip to content

Commit

Permalink
hack, force run 4.12
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Li <tao.li@enterprisedb.com>
  • Loading branch information
litaocdl committed Apr 17, 2024
1 parent 63b7baf commit 10147f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/e2e/openshift_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,14 @@ var _ = Describe("Upgrade Paths on OpenShift", Label(tests.LabelUpgrade), Ordere
AssertOperatorIsReady()
})

subScription, err := testsUtils.GetSubscription(env)

Check failure on line 133 in tests/e2e/openshift_upgrade_test.go

View workflow job for this annotation

GitHub Actions / Run linters

ineffectual assignment to err (ineffassign)
GinkgoWriter.Printf("subScription is %v", subScription)
// Gather the version and semantic Versions of the operator
currentVersion, err := testsUtils.GetSubscriptionVersion(env)
GinkgoWriter.Printf("currentVersion is %v", currentVersion)
Expect(err).ToNot(HaveOccurred())
currentSemVersion, err := semver.Make(currentVersion)
GinkgoWriter.Printf("currentSemVersion is %v", currentSemVersion)
Expect(err).ToNot(HaveOccurred())
newPolicyRelease, err := semver.Make("1.16.0")
Expect(err).ToNot(HaveOccurred())
Expand All @@ -155,6 +159,8 @@ var _ = Describe("Upgrade Paths on OpenShift", Label(tests.LabelUpgrade), Ordere
// Apply the new subscription to upgrade to a new version of the operator
err = testsUtils.UpgradeSubscription(env, upgradeSubscription)
Expect(err).ToNot(HaveOccurred())
subScription, err = testsUtils.GetSubscription(env)
GinkgoWriter.Printf("subScription is %v", subScription)
Eventually(func() (string, error) {
return testsUtils.GetSubscriptionVersion(env)
}, 300).
Expand Down

0 comments on commit 10147f1

Please sign in to comment.