Skip to content

Commit fa58f53

Browse files
committed
tests: use real statuses for mockClientWithPollingResponse
1 parent e12a23c commit fa58f53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/operator/factory/vmdistributedcluster/vmdistributedcluster_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,13 +880,13 @@ func TestWaitForVMClusterReady(t *testing.T) {
880880
// Always return pending status
881881
return &mockClientWithPollingResponse{
882882
Client: fakeClient,
883-
statuses: []vmv1beta1.UpdateStatus{"Pending", "Pending", "Pending"},
883+
statuses: []vmv1beta1.UpdateStatus{vmv1beta1.UpdateStatusExpanding, vmv1beta1.UpdateStatusExpanding, vmv1beta1.UpdateStatusExpanding},
884884
statusIndex: 0,
885885
t: t,
886886
}
887887
},
888888
initialVMClusterFunc: func(vmc *vmv1beta1.VMCluster) {
889-
vmc.Status.UpdateStatus = "Pending"
889+
vmc.Status.UpdateStatus = vmv1beta1.UpdateStatusExpanding
890890
},
891891
expectedErrSubstring: "failed to wait for VMCluster default/stuck-cluster to be ready: context deadline exceeded",
892892
},

0 commit comments

Comments
 (0)