From 8785d0601756a29f45f18b614aed935abbca8bc9 Mon Sep 17 00:00:00 2001 From: Shubham Bajpai Date: Fri, 7 Feb 2020 17:25:16 +0530 Subject: [PATCH] fix(BDD): wait for restarted pod to come to running state (#1608) fix(BDD): wait for restarted pod to come to running state Signed-off-by: shubham --- tests/cstor/pool/reconciliation/reconciliation_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/cstor/pool/reconciliation/reconciliation_test.go b/tests/cstor/pool/reconciliation/reconciliation_test.go index cf464a084e..c11e1a13ae 100644 --- a/tests/cstor/pool/reconciliation/reconciliation_test.go +++ b/tests/cstor/pool/reconciliation/reconciliation_test.go @@ -368,6 +368,13 @@ var _ = Describe("RAIDZ2 SPARSE SPC", func() { err = ops.RestartPodEventually(&mayaPod) Expect(err).To(BeNil(), "failed to restart maya-apiserver pod") + podCount := ops.GetPodRunningCountEventually( + string(artifacts.OpenebsNamespace), + string(artifacts.MayaAPIServerLabelSelector), + 1, + ) + Expect(podCount).To(Equal(1), "failed to get maya-apiserver pod after restart") + cspCount := ops.GetHealthyCSPCount(spcObj.Name, 3) Expect(cspCount).To(Equal(3)) bdcCount := ops.GetBDCCount(getLabelSelector(spcObj), string(artifacts.OpenebsNamespace))