Skip to content
Snippets Groups Projects
Commit 91da3239 authored by Thibault Allançon's avatar Thibault Allançon
Browse files

tests: use fixed delay in test_list_history

Closes T2829. The ".status" file presence is currently not a reliable
system to stop the delay, so use a fixed one instead to prevent random
CI fails. The .status issue is now tracked in T2830.
parent 1c778776
No related branches found
No related tags found
No related merge requests found
......@@ -72,11 +72,9 @@ def test_list_history(fuse_mntdir):
assert depth2 in (os.listdir(dir_by_page / depth1))
dir_by_date = dir_path / "by-date"
# Wait max 3 seconds to populate by-date/ dir
for i in range(300):
if ".status" not in os.listdir(dir_by_date):
break
time.sleep(0.01)
# TODO: rely on .status file instead to wait
# Wait 2 seconds to populate by-date/ dir
time.sleep(2)
for swhid in expected:
meta = get_data_from_web_archive(str(swhid))
date = dateutil.parser.parse(meta["date"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment