Skip to content

Commit

Permalink
make test even more predictable
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Jan 24, 2024
1 parent 3c047a2 commit 8d81d99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/pipeline/test_resources_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,17 +239,17 @@ def _gen():
@parallelize
def resource1():
for l_ in ["a", "b", "c"]:
time.sleep(0.3)
time.sleep(0.5)
nonlocal execution_order
execution_order.append("one")
threads.add(threading.get_ident())
yield {"letter": l_}

@parallelize
def resource2():
time.sleep(0.1)
time.sleep(0.25)
for l_ in ["e", "f", "g"]:
time.sleep(0.3)
time.sleep(0.5)
nonlocal execution_order
execution_order.append("two")
threads.add(threading.get_ident())
Expand Down

0 comments on commit 8d81d99

Please sign in to comment.