Skip to content

Commit d1a350f

Browse files
migrate.sh can flake if a namespace is still being deleted
Ensure all namespaces are terminated prior to starting test
1 parent 4a5fb49 commit d1a350f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/cmd/migrate.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ os::test::junit::declare_suite_start "cmd/migrate"
1313
# This test validates storage migration
1414

1515
os::cmd::expect_success 'oc login -u system:admin'
16+
# ensure all namespaces have been deleted before attempting to perform global action
17+
os::cmd::try_until_not_text 'oc get ns --template "{{ range .items }}{{ if not (eq .status.phase \"Active\") }}1{{ end }}{{ end }}"' '1'
1618

1719
os::test::junit::declare_suite_start "cmd/migrate/storage"
1820
os::cmd::expect_success_and_text 'oadm migrate storage' 'summary \(dry run\)'

0 commit comments

Comments
 (0)