From 68e381d2889c0af55ab5d34132ad899dd0f68b80 Mon Sep 17 00:00:00 2001 From: Xun Jiang Date: Mon, 23 Dec 2024 10:52:59 +0800 Subject: [PATCH] Modify the Init logic to fix the migration case error. Signed-off-by: Xun Jiang --- test/e2e/migration/migration.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e/migration/migration.go b/test/e2e/migration/migration.go index 8999a805ff..7eb57daaec 100644 --- a/test/e2e/migration/migration.go +++ b/test/e2e/migration/migration.go @@ -67,8 +67,12 @@ func MigrationWithFS() { } func (m *migrationE2E) Init() error { + By("Call the base E2E init", func() { + Expect(m.TestCase.Init()).To(Succeed()) + }) + By("Skip check", func() { - if m.VeleroCfg.DefaultClusterContext == "" && m.VeleroCfg.StandbyClusterContext == "" { + if m.VeleroCfg.DefaultClusterContext == "" || m.VeleroCfg.StandbyClusterContext == "" { Skip("Migration test needs 2 clusters") } @@ -81,10 +85,6 @@ func (m *migrationE2E) Init() error { } }) - By("Call the base E2E init", func() { - Expect(m.TestCase.Init()).To(Succeed()) - }) - m.kibishiiData = *kibishii.DefaultKibishiiData m.kibishiiData.ExpectedNodes = 3 m.CaseBaseName = "migration-" + m.UUIDgen