@@ -96,7 +96,7 @@ func TestNotSuspendServicesWhenSuspendDisabled(t *testing.T) {
96
96
// assert that the cache service is suspended
97
97
svc , err := ManagementOverRestRequest (& c , "/management/coherence/cluster/services/PartitionedCache" )
98
98
g .Expect (err ).NotTo (HaveOccurred ())
99
- g .Expect (svc ["quorumStatus" ]).NotTo ( BeEquivalentTo ([] interface {}{ "Suspended" } ))
99
+ g .Expect (svc ["quorumStatus" ]).To ( ContainElement ( "Suspended" ))
100
100
101
101
// remove the test finalizer which should then let everything be deleted
102
102
err = removeAllFinalizers (& c )
@@ -144,7 +144,7 @@ func TestSuspendServicesOnScaleDownToZero(t *testing.T) {
144
144
// assert that the cache service is suspended
145
145
svc , err := ManagementOverRestRequest (& c , "/management/coherence/cluster/services/PartitionedCache" )
146
146
g .Expect (err ).NotTo (HaveOccurred ())
147
- g .Expect (svc ["quorumStatus" ]).To (BeEquivalentTo ([] interface {}{ "Suspended" } ))
147
+ g .Expect (svc ["quorumStatus" ]).To (ContainElement ( "Suspended" ))
148
148
149
149
// remove the test finalizer from the StatefulSet and Coherence deployment which should then let everything be deleted
150
150
err = removeAllFinalizers (sts )
@@ -198,7 +198,7 @@ func TestNotSuspendServicesOnScaleDownToZeroIfSuspendDisabled(t *testing.T) {
198
198
// assert that the cache service is suspended
199
199
svc , err := ManagementOverRestRequest (& c , "/management/coherence/cluster/services/PartitionedCache" )
200
200
g .Expect (err ).NotTo (HaveOccurred ())
201
- g .Expect (svc ["quorumStatus" ]).NotTo ( BeEquivalentTo ([] interface {}{ "Suspended" } ))
201
+ g .Expect (svc ["quorumStatus" ]).To ( ContainElement ( "Suspended" ))
202
202
203
203
// remove the test finalizer from the StatefulSet and Coherence deployment which should then let everything be deleted
204
204
err = removeAllFinalizers (sts )
@@ -247,7 +247,7 @@ func TestNotSuspendServicesInMultipleDeployments(t *testing.T) {
247
247
// assert that the cache service is NOT suspended
248
248
svc , err := ManagementOverRestRequest (& cOne , "/management/coherence/cluster/services/PartitionedCache" )
249
249
g .Expect (err ).NotTo (HaveOccurred ())
250
- g .Expect (svc ["quorumStatus" ]).NotTo ( BeEquivalentTo ([] interface {}{ "Suspended" } ))
250
+ g .Expect (svc ["quorumStatus" ]).To ( ContainElement ( "Suspended" ))
251
251
}
252
252
253
253
func waitForFinalizerTasks (n types.NamespacedName ) error {
0 commit comments