From 6b19626eb977ff2681bf2e6416676dff21a758ab Mon Sep 17 00:00:00 2001 From: micafer Date: Thu, 28 Mar 2019 13:54:19 +0100 Subject: [PATCH] Fix test --- test/functional/test_im.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/functional/test_im.py b/test/functional/test_im.py index 11ee3ab34..4dda40868 100755 --- a/test/functional/test_im.py +++ b/test/functional/test_im.py @@ -148,7 +148,12 @@ def test_inf_lifecycle(self): infId = IM.CreateInfrastructure(str(radl), auth0) - time.sleep(15) + state = IM.GetInfrastructureState(infId, auth0) + cont = 0 + while state["state"] == "running" and cont < 60: + cont += 2 + time.sleep(2) + state = IM.GetInfrastructureState(infId, auth0) state = IM.GetInfrastructureState(infId, auth0) self.assertEqual(state["state"], "unconfigured")