Skip to content

Commit 9805407

Browse files
committed
Debug
1 parent 23a1356 commit 9805407

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def fact(request, docker_client, fact_config, server, logs_dir, test_file):
192192

193193
container_log = os.path.join(logs_dir, 'fact.log')
194194
# Wait for container to be ready
195-
for _ in range(3):
195+
for _ in range(5):
196196
try:
197197
resp = requests.get(
198198
f'http://{config["endpoint"]["address"]}/health_check')
@@ -207,6 +207,8 @@ def fact(request, docker_client, fact_config, server, logs_dir, test_file):
207207
container.remove()
208208
pytest.fail('fact failed to start')
209209

210+
# fact seems to be taking a bit longer to startup, try adding a small delay
211+
sleep(1)
210212
yield container
211213

212214
# Capture prometheus metrics before stopping the container

0 commit comments

Comments
 (0)