Skip to content

Commit 3d3ca1c

Browse files
committed
test_start_job_thread_basic: more robust against randomness of last job
1 parent 706fafe commit 3d3ca1c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/extra/job_management/test_manager.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,15 @@ def test_start_job_thread_basic(self, tmp_path, job_manager, job_manager_root_di
281281
("job-2019", "finished", "foo", "1234.5 cpu-seconds", "34567.89 mb-seconds", "2345 seconds", 123),
282282
("job-2020", "finished", "bar", "1234.5 cpu-seconds", "34567.89 mb-seconds", "2345 seconds", 123),
283283
("job-2021", "finished", "bar", "1234.5 cpu-seconds", "34567.89 mb-seconds", "2345 seconds", 123),
284-
("job-2022", "finished", "foo", "1234.5 cpu-seconds", "34567.89 mb-seconds", "2345 seconds", 123),
284+
(
285+
"job-2022",
286+
"finished",
287+
dirty_equals.IsOneOf("foo", "bar"),
288+
"1234.5 cpu-seconds",
289+
"34567.89 mb-seconds",
290+
"2345 seconds",
291+
123,
292+
),
285293
]
286294

287295
# Check downloaded results and metadata.

0 commit comments

Comments
 (0)