Skip to content

Commit

Permalink
fix(test): TestVolumeLifeCycle
Browse files Browse the repository at this point in the history
longhorn/longhorn-8867

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
  • Loading branch information
c3y1huang authored and derekbit committed Jul 3, 2024
1 parent 2237416 commit ee3368d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/volume_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee3368d

Please sign in to comment.