Skip to content

Commit caad151

Browse files
authored
Attempt to fix flaky Harbor E2E setup (DataDog#20641)
* increase wait time by 3x for the users endpoint * increase wait to 5s
1 parent eea576f commit caad151

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

harbor/tests/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# All rights reserved
33
# Licensed under a 3-clause BSD style license (see LICENSE)
44
import os
5-
import time
65

76
import pytest
87
import requests
@@ -49,8 +48,7 @@ def dd_environment(e2e_instance):
4948
expected_log = "http server Running on" if HARBOR_VERSION < [1, 10, 0] else "API server is serving at"
5049
conditions = [
5150
CheckDockerLogs(compose_file, expected_log, wait=3),
52-
lambda: time.sleep(4),
53-
WaitFor(create_simple_user),
51+
WaitFor(create_simple_user, wait=5),
5452
]
5553
with docker_run(compose_file, conditions=conditions, attempts=5):
5654
yield e2e_instance

0 commit comments

Comments
 (0)