Skip to content

Commit

Permalink
fix: check for correct process
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Oct 31, 2023
1 parent b59c39e commit e4b4bf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/modularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ def pub_and_sub(args):
z_pub_process.wait()

print("Stop subscriber")
if z_pub_process.poll() is None:
if z_sub_process.poll() is None:
# Send "q" command to z_sub to stop it
z_sub_process.stdin.write("q\n")
z_sub_process.stdin.flush()
time.sleep(1)

# Wait for z_sub to finish
z_sub_process.wait()
Expand Down

0 comments on commit e4b4bf4

Please sign in to comment.