Skip to content

Commit

Permalink
Make sure we wait some time before checking the incompatible connecti…
Browse files Browse the repository at this point in the history
…ons (#1704)

* Make sure we wait some time before checking the incompatible connections

* Update e2e/test_operator_upgrades/operator_upgrades_test.go
  • Loading branch information
johscheuer authored Jun 28, 2023
1 parent 255b0e8 commit f1980e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e2e/test_operator_upgrades/operator_upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,10 @@ var _ = Describe("Operator Upgrades", Label("e2e", "pr"), func() {
// The cluster should still be able to upgrade.
Expect(fdbCluster.UpgradeCluster(targetVersion, true)).NotTo(HaveOccurred())

status := fdbCluster.GetStatus()
Expect(len(status.Cluster.IncompatibleConnections)).To(Equal(0))
// Make sure that the incompatible connections are cleaned up after some time.
Eventually(func() []string {
return fdbCluster.GetStatus().Cluster.IncompatibleConnections
}).WithTimeout(5 * time.Minute).WithPolling(5 * time.Second).MustPassRepeatedly(5).Should(BeEmpty())
},
EntryDescription("Upgrade from %[1]s to %[2]s with one coordinator not being restarted"),
fixtures.GenerateUpgradeTableEntries(testOptions),
Expand Down

0 comments on commit f1980e1

Please sign in to comment.