Skip to content

Commit

Permalink
fix: sleep longer everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara committed Oct 3, 2024
1 parent 36c5f04 commit 822d6dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/examples_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def time(self):
print("=> Test z_get & z_queryable")
## Run z_queryable
queryable = Pyrun("z_queryable.py", ["-k=demo/example/zenoh-python-queryable"])
time.sleep(1)
time.sleep(3)
## z_get: Able to get reply from queryable
get = Pyrun("z_get.py", ["-s=demo/example/zenoh-python-queryable"])
if error := get.status():
Expand All @@ -141,7 +141,7 @@ def time(self):
print("=> Test z_storage & z_sub")
storage = Pyrun("z_storage.py")
sub = Pyrun("z_sub.py")
time.sleep(1)
time.sleep(3)
## z_put: Put one message (to storage & sub)
put = Pyrun("z_put.py")
if error := put.status():
Expand All @@ -164,7 +164,7 @@ def time(self):
errors.append("z_get didn't get a response from z_storage about put")
if any(("z_get" in error) for error in errors):
get.dbg()
time.sleep(1)
time.sleep(3)
## z_delete: Delete put in storage
delete = Pyrun("z_delete.py")
if error := delete.status():
Expand Down Expand Up @@ -231,9 +231,9 @@ def time(self):
print("=> Test z_pull & z_sub_queued")
## Run z_pull and z_sub_queued
sub_queued = Pyrun("z_sub_queued.py")
time.sleep(1)
time.sleep(3)
pull = Pyrun("z_pull.py", ["--size=1", "--interval=1"])
time.sleep(1)
time.sleep(3)
## z_pub: Put two messages (to storage & sub)
pub = Pyrun("z_pub.py", ["--iter=2", "--interval=0"])
if error := pub.status():
Expand All @@ -257,7 +257,7 @@ def time(self):
if any(("z_sub_queued" in error) for error in errors):
sub_queued.dbg()
## z_pull: Should only receive the last messages
time.sleep(1)
time.sleep(3)
if error := pull.interrupt():
pull.dbg()
errors.append(error)
Expand Down

0 comments on commit 822d6dd

Please sign in to comment.