Skip to content

Commit

Permalink
Fix flaky test (#10035)
Browse files Browse the repository at this point in the history
* Fix base test bug

* Add privilege

* Add sleep

* Remove create_file

* Add docker requirement

* Fix style

* Fix more style
  • Loading branch information
yzhan289 authored Sep 2, 2021
1 parent b1b9ace commit c7473bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datadog_checks_base/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from datadog_checks.base.utils.platform import Platform
from datadog_checks.dev import TempDir, docker_run, get_here
from datadog_checks.dev.conditions import CheckDockerLogs
from datadog_checks.dev.conditions import CheckDockerLogs, WaitFor

HERE = get_here()

Expand Down Expand Up @@ -114,6 +114,7 @@ def uds_path():
"UDS_HOST_DIRECTORY": tmp_dir,
'UDS_FILENAME': uds_filename,
},
conditions=[WaitFor(lambda: os.path.exists(uds_path))],
):
yield uds_path

Expand Down

0 comments on commit c7473bc

Please sign in to comment.