@@ -116,21 +116,19 @@ func clusterSetup(beforeVersion string, enableOperatorPodChaos bool) {
116116// are at "IncorrectCommandLine" state (which means that they have the new binaries and have
117117// the new configuration but are not restarted).
118118//
119- // Note: we tried doing this by polling for "UpgradeRequeued" event on primary/remote/primary-satellite data centers,
119+ // Note: we tried doing this by polling for "UpgradeRequeued" event on primary/remote/primary-satellite data centers,
120120// but we found that that approach is not very reliable.
121121func verifyBouncingIsBlocked () {
122- Eventually (func (g Gomega ) bool {
122+ Eventually (func (g Gomega ) {
123123 for _ , cluster := range fdbCluster .GetAllClusters () {
124124 if strings .HasSuffix (cluster .Name (), fixtures .RemoteSatelliteID ) {
125125 continue
126126 }
127127
128- g .Expect (cluster .AllProcessGroupsHaveCondition (fdbv1beta2 .IncorrectCommandLine )).
129- To (BeTrue ())
128+ g .Expect (cluster .AllProcessGroupsHaveCondition (fdbv1beta2 .IncorrectCommandLine , true )).
129+ To (BeTrue (), fmt . Sprintf ( "all process groups in cluster %s should have the incorrect command line condition" , cluster . Name ()) )
130130 }
131-
132- return true
133- }).WithTimeout (10 * time .Minute ).WithPolling (5 * time .Second ).MustPassRepeatedly (30 ).Should (BeTrue ())
131+ }).WithTimeout (10 * time .Minute ).WithPolling (5 * time .Second ).MustPassRepeatedly (30 ).Should (Succeed ())
134132}
135133
136134var _ = AfterSuite (func () {
@@ -335,7 +333,7 @@ var _ = Describe("Operator HA Upgrades", Label("e2e", "pr"), func() {
335333
336334 // It should block the restart of the processes until the rest of the cluster is upgraded.
337335 Eventually (func () bool {
338- return primary .AllProcessGroupsHaveCondition (fdbv1beta2 .IncorrectCommandLine )
336+ return primary .AllProcessGroupsHaveCondition (fdbv1beta2 .IncorrectCommandLine , true )
339337 }).WithTimeout (10 * time .Minute ).WithPolling (5 * time .Second ).MustPassRepeatedly (30 ).Should (BeTrue ())
340338
341339 Expect (fdbCluster .UpgradeCluster (targetVersion , false )).NotTo (HaveOccurred ())
0 commit comments