Skip to content

Commit

Permalink
Fixed go-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekdwivedi3060 committed Aug 26, 2024
1 parent 4de80e6 commit e326679
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func PauseReconcileTest(ctx goctx.Context) {
"Should pause reconcile", func() {
// Testing over upgrade as it is a long-running operation
By("1. Start upgrade and pause at partial upgrade")

aeroCluster, err := getCluster(k8sClient, ctx, clusterNamespacedName)
Expect(err).ToNot(HaveOccurred())

Expand Down Expand Up @@ -146,10 +147,12 @@ func PauseReconcileTest(ctx goctx.Context) {
).Should(BeTrue())

By("Pause reconcile")

err = setPauseFlag(ctx, clusterNamespacedName, ptr.To(true))
Expect(err).ToNot(HaveOccurred())

By("2. Upgrade should fail")

aeroCluster, err = getCluster(k8sClient, ctx, clusterNamespacedName)
Expect(err).ToNot(HaveOccurred())

Expand All @@ -161,10 +164,12 @@ func PauseReconcileTest(ctx goctx.Context) {

// Resume reconcile and Wait for all pods to be upgraded
By("3. Resume reconcile and upgrade should succeed")

err = setPauseFlag(ctx, clusterNamespacedName, nil)
Expect(err).ToNot(HaveOccurred())

By("Upgrade should succeed")

aeroCluster, err = getCluster(k8sClient, ctx, clusterNamespacedName)
Expect(err).ToNot(HaveOccurred())

Expand Down

0 comments on commit e326679

Please sign in to comment.