From 9322d24a2439d1bae637b545f0e575c5041135cb Mon Sep 17 00:00:00 2001 From: Trevor McKay Date: Thu, 10 May 2018 12:27:19 -0400 Subject: [PATCH] Fix --nopods tests to wait for pod list first --- test/cmd/get.sh | 2 +- test/cmd/geteph.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cmd/get.sh b/test/cmd/get.sh index 7bf19a071..bd91b0d09 100755 --- a/test/cmd/get.sh +++ b/test/cmd/get.sh @@ -16,7 +16,7 @@ os::cmd::try_until_text "_output/oshinko get abc -o json" '"WorkerCount": 2' os::cmd::try_until_text "_output/oshinko get def -o yaml" 'WorkerCount: 1' # pods vs nopods -os::cmd::expect_success_and_text "_output/oshinko get abc -o json" '"pods"' +os::cmd::try_until_text "_output/oshinko get abc -o json" '"pods"' os::cmd::expect_success_and_not_text "_output/oshinko get abc -o json --nopods" '"pods"' # get all diff --git a/test/cmd/geteph.sh b/test/cmd/geteph.sh index 2d377cd59..c0c9d5904 100755 --- a/test/cmd/geteph.sh +++ b/test/cmd/geteph.sh @@ -16,7 +16,7 @@ os::cmd::try_until_text "_output/oshinko get_eph abc -o json" '"WorkerCount": 2' os::cmd::try_until_text "_output/oshinko get_eph abc -o yaml" 'WorkerCount: 2' # pods vs nopods -os::cmd::expect_success_and_text "_output/oshinko get_eph abc -o json" '"pods"' +os::cmd::try_until_text "_output/oshinko get_eph abc -o json" '"pods"' os::cmd::expect_success_and_not_text "_output/oshinko get_eph abc -o json --nopods" '"pods"' # get all