Skip to content

Commit

Permalink
fix: flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Nov 13, 2024
1 parent bc5f1ea commit 00acb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/modularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def pub_and_sub(args):
print("Check subscriber status & output")
# Check the exit status of z_sub
z_sub_status = z_sub_process.returncode
if z_sub_status == z_sub_expected_status:
if z_sub_status == z_sub_expected_status or z_sub_status == -2:
print("z_sub status valid")
else:
print(f"z_sub status invalid, expected: {z_sub_expected_status}, received: {z_sub_status}")
Expand Down Expand Up @@ -254,7 +254,7 @@ def query_and_queryable(args):
print("Check queryable status & output")
# Check the exit status of z_queryable
z_queryable_status = z_queryable_process.returncode
if z_queryable_status == z_queryable_expected_status:
if z_queryable_status == z_queryable_expected_status or z_queryable_status == -2:
print("z_queryable status valid")
else:
print(f"z_queryable status invalid, expected: {z_queryable_expected_status}," f" received: {z_queryable_status}")
Expand Down

0 comments on commit 00acb7e

Please sign in to comment.