From ee3368d377120da0e10eebbe6f26f3f1337dc759 Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Tue, 2 Jul 2024 14:52:09 +0800 Subject: [PATCH] fix(test): TestVolumeLifeCycle longhorn/longhorn-8867 Signed-off-by: Chin-Ya Huang --- controller/volume_controller_test.go | 2 ++ 1 file changed, 2 insertions(+) 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