Skip to content

Commit 7152431

Browse files
committed
fix another test
1 parent 7bd3a3f commit 7152431

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

testing/acceptance_test.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,12 +1247,20 @@ def test(i):
12471247
"""
12481248
pytester.makepyfile(test_a=test_file.format(10), test_b=test_file.format(20))
12491249
result = pytester.runpytest("-n2", "--dist=loadscope", "-v")
1250-
assert get_workers_and_test_count_by_prefix(
1250+
# assert sorted([
1251+
# get_workers_and_test_count_by_prefix(
1252+
# "test_a.py::test", result.outlines
1253+
# ),
1254+
# get_workers_and_test_count_by_prefix(
1255+
# "test_b.py::test", result.outlines
1256+
# )
1257+
# ], key=lambda d: d.keys()) == [{"gw0": 20}, {"gw1": 10}]
1258+
assert list(get_workers_and_test_count_by_prefix(
12511259
"test_a.py::test", result.outlines
1252-
) == {"gw1": 10}
1253-
assert get_workers_and_test_count_by_prefix(
1260+
).values()) == [10]
1261+
assert list(get_workers_and_test_count_by_prefix(
12541262
"test_b.py::test", result.outlines
1255-
) == {"gw0": 20}
1263+
).values()) == [20]
12561264

12571265
def test_workqueue_ordered_by_input(self, pytester: pytest.Pytester) -> None:
12581266
test_file = """

0 commit comments

Comments
 (0)