tests - add sleep in the end of SwarmTest.init()

This commit is contained in:
bunkerity 2022-07-15 09:24:24 +02:00
parent abc500a4d4
commit 6e47b29919
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 7 additions and 5 deletions

View File

@ -0,0 +1 @@
aa

View File

@ -12,11 +12,11 @@ class SwarmTest(Test) :
def __init__(self, name, timeout, tests) :
super().__init__(name, "swarm", timeout, tests)
self._domains = {
r"www\.example\.com": getenv("TEST_DOMAIN2"),
r"auth\.example\.com": getenv("TEST_DOMAIN3"),
r"app1\.example\.com": getenv("TEST_DOMAIN2"),
r"app2\.example\.com": getenv("TEST_DOMAIN3"),
r"app3\.example\.com": getenv("TEST_DOMAIN2")
r"www\.example\.com": getenv("TEST_DOMAIN1"),
r"auth\.example\.com": getenv("TEST_DOMAIN2"),
r"app1\.example\.com": getenv("TEST_DOMAIN3"),
r"app2\.example\.com": getenv("TEST_DOMAIN2"),
r"app3\.example\.com": getenv("TEST_DOMAIN3")
}
def init() :
@ -47,6 +47,7 @@ class SwarmTest(Test) :
i += 1
if not healthy :
raise(Exception("swarm stack is not healthy"))
sleep(60)
except :
log("SWARM", "", "exception while running SwarmTest.init()\n" + format_exc())
return False