Skip to content

Commit

Permalink
vm: correct unit test
Browse files Browse the repository at this point in the history
The VM doesn't the ManualRequiredCondition set if there is still an
existing VMI, but rather the migration will be tried over and over.

Signed-off-by: Alice Frosi <[email protected]>
  • Loading branch information
alicefr committed Oct 11, 2024
1 parent 5e0792c commit 06ded25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/virt-controller/watch/vm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7238,7 +7238,7 @@ var _ = Describe("VirtualMachine", func() {
withVMICondVolumeMigInProgress(k8sv1.ConditionFalse, "")))),
), &v1.VolumeMigrationState{
MigratedVolumes: withMigVols(volName, "dv0", "dv1"),
}, true,
}, false,
),
Entry("with volume migration in progress and vmi disappeared", libvmi.NewVirtualMachine(libvmi.New(libvmi.WithDataVolume(volName, "dv1")),
libvmistatus.WithVMStatus(
Expand Down

0 comments on commit 06ded25

Please sign in to comment.