Skip to content

Commit

Permalink
Merge pull request #8551 from blackpiglet/migration_init
Browse files Browse the repository at this point in the history
[cherry-pick] Modify the Init logic to fix the migration case error.
  • Loading branch information
blackpiglet authored Dec 24, 2024
2 parents 20a647b + 938dd3c commit fa8f464
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/e2e/migration/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand All @@ -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
Expand Down

0 comments on commit fa8f464

Please sign in to comment.