diff --git a/tests/migration_test.go b/tests/migration_test.go index 26386591907e..4c6bb5b13cc1 100644 --- a/tests/migration_test.go +++ b/tests/migration_test.go @@ -272,6 +272,10 @@ var _ = Describe("[rfe_id:393][crit:high][vendor:cnv-qe@redhat.com][level:system "There are no control-plane nodes in the cluster") for _, node := range controlPlaneNodes.Items { + if node.Spec.Unschedulable == mode { + continue + } + nodeCopy := node.DeepCopy() nodeCopy.Spec.Unschedulable = mode @@ -3393,6 +3397,10 @@ var _ = Describe("[rfe_id:393][crit:high][vendor:cnv-qe@redhat.com][level:system setControlPlaneUnschedulable(true) }) + AfterEach(func() { + setControlPlaneUnschedulable(false) + }) + It("[test_id:6982]should migrate a VMI only one time", func() { checks.SkipIfVersionBelow("Eviction of completed pods requires v1.13 and above", "1.13")