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")