diff --git a/controller/volume_controller_test.go b/controller/volume_controller_test.go index c839dcfca9..9e4e57fdfb 100644 --- a/controller/volume_controller_test.go +++ b/controller/volume_controller_test.go @@ -132,6 +132,8 @@ func (s *TestSuite) TestVolumeLifeCycle(c *C) { tc.expectVolume.Status.State = longhorn.VolumeStateCreating tc.expectVolume.Status.CurrentImage = tc.volume.Spec.Image tc.expectVolume.Status.Robustness = longhorn.VolumeRobustnessFaulted + tc.expectVolume.Status.Conditions = setVolumeConditionWithoutTimestamp(tc.expectVolume.Status.Conditions, + longhorn.VolumeConditionTypeScheduled, longhorn.ConditionStatusFalse, longhorn.VolumeConditionReasonReplicaSchedulingFailure, longhorn.ErrorReplicaSchedulePrecheckNewReplicaFailed) testCases["volume create - replica creation failure"] = tc // unable to create volume because no node to schedule