@@ -96,7 +96,7 @@ func TestNotSuspendServicesWhenSuspendDisabled(t *testing.T) {
9696 // assert that the cache service is suspended
9797 svc , err := ManagementOverRestRequest (& c , "/management/coherence/cluster/services/PartitionedCache" )
9898 g .Expect (err ).NotTo (HaveOccurred ())
99- g .Expect (svc ["quorumStatus" ]).NotTo ( BeEquivalentTo ([] interface {}{ "Suspended" } ))
99+ g .Expect (svc ["quorumStatus" ]).To ( ContainElement ( "Suspended" ))
100100
101101 // remove the test finalizer which should then let everything be deleted
102102 err = removeAllFinalizers (& c )
@@ -144,7 +144,7 @@ func TestSuspendServicesOnScaleDownToZero(t *testing.T) {
144144 // assert that the cache service is suspended
145145 svc , err := ManagementOverRestRequest (& c , "/management/coherence/cluster/services/PartitionedCache" )
146146 g .Expect (err ).NotTo (HaveOccurred ())
147- g .Expect (svc ["quorumStatus" ]).To (BeEquivalentTo ([] interface {}{ "Suspended" } ))
147+ g .Expect (svc ["quorumStatus" ]).To (ContainElement ( "Suspended" ))
148148
149149 // remove the test finalizer from the StatefulSet and Coherence deployment which should then let everything be deleted
150150 err = removeAllFinalizers (sts )
@@ -198,7 +198,7 @@ func TestNotSuspendServicesOnScaleDownToZeroIfSuspendDisabled(t *testing.T) {
198198 // assert that the cache service is suspended
199199 svc , err := ManagementOverRestRequest (& c , "/management/coherence/cluster/services/PartitionedCache" )
200200 g .Expect (err ).NotTo (HaveOccurred ())
201- g .Expect (svc ["quorumStatus" ]).NotTo ( BeEquivalentTo ([] interface {}{ "Suspended" } ))
201+ g .Expect (svc ["quorumStatus" ]).To ( ContainElement ( "Suspended" ))
202202
203203 // remove the test finalizer from the StatefulSet and Coherence deployment which should then let everything be deleted
204204 err = removeAllFinalizers (sts )
@@ -247,7 +247,7 @@ func TestNotSuspendServicesInMultipleDeployments(t *testing.T) {
247247 // assert that the cache service is NOT suspended
248248 svc , err := ManagementOverRestRequest (& cOne , "/management/coherence/cluster/services/PartitionedCache" )
249249 g .Expect (err ).NotTo (HaveOccurred ())
250- g .Expect (svc ["quorumStatus" ]).NotTo ( BeEquivalentTo ([] interface {}{ "Suspended" } ))
250+ g .Expect (svc ["quorumStatus" ]).To ( ContainElement ( "Suspended" ))
251251}
252252
253253func waitForFinalizerTasks (n types.NamespacedName ) error {
0 commit comments