Skip to content

Commit

Permalink
Give more time to start process
Browse files Browse the repository at this point in the history
On PyPy (3.8, 3.9, 3.10) 0.01s was not long enough
  • Loading branch information
asmacdo committed Sep 11, 2024
1 parent a6637ed commit 4742aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def runner() -> int:

thread = threading.Thread(target=runner)
thread.start()
sleep(0.01) # make sure the process is started
sleep(0.03) # make sure the process is started
ps_command = "ps aux | grep '[s]leep 60.74016230000801'" # brackets to not match grep process
ps_output = subprocess.check_output(ps_command, shell=True).decode()
pid = int(ps_output.split()[1])
Expand Down

0 comments on commit 4742aea

Please sign in to comment.