We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9eef5 commit 8e64fb4Copy full SHA for 8e64fb4
src/commercetools/contrib/pytest.py
@@ -2,6 +2,7 @@
2
import typing
3
4
import pytest
5
+import requests
6
7
from commercetools import Client
8
from commercetools.testing import backend_mocker
@@ -41,6 +42,12 @@ def serve():
41
42
thread.start()
43
44
if is_running.wait():
45
+ for i in range(0, 5):
46
+ response = requests.get(server.api_url + "/-/health")
47
+ if response.status_code == 200:
48
+ break
49
+ time.sleep(0.5)
50
+
51
yield server
52
53
thread.join(timeout=0)
0 commit comments