Skip to content

Commit

Permalink
make the test a bit more difficult
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Nov 10, 2023
1 parent 060f864 commit 70cc8a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _do_test_distributed_execution_random_dag(ctx_factory):

gen_comm_called = False

ntests = 10
ntests = 20
for i in range(ntests):
seed = 120 + i
print(f"Step {i} {seed=}")
Expand All @@ -280,9 +280,11 @@ def gen_comm(rdagc):
comm_tag += 1

if comm_tag % 5 == 1:
tag = (comm_tag, frozenset([_RandomDAGTag, _RandomDAGTag]))
tag = (comm_tag, frozenset([_RandomDAGTag, "a", comm_tag]))
elif comm_tag % 5 == 2:
tag = (comm_tag, (_RandomDAGTag,))
tag = (comm_tag, (_RandomDAGTag, "b"))
elif comm_tag % 5 == 3:
tag = (_RandomDAGTag, comm_tag)
else:
tag = (comm_tag, _RandomDAGTag) # noqa: B023

Expand Down

0 comments on commit 70cc8a4

Please sign in to comment.