-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make tests less fragile by waiting a bit for sessions to mutually dis…
…cover
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
#include <unistd.h> | ||
|
||
#include "z_int_helpers.h" | ||
|
||
#ifdef VALID_PLATFORM | ||
|
@@ -51,7 +53,7 @@ int run_queryable() { | |
} | ||
|
||
SEM_POST(sem); | ||
sleep(10); | ||
sleep(5); | ||
|
||
z_drop(z_move(qable)); | ||
z_close(z_move(s)); | ||
|
@@ -78,6 +80,7 @@ int run_get() { | |
perror("Unable to open session!"); | ||
return -1; | ||
} | ||
sleep(1); | ||
|
||
z_get_options_t opts = z_get_options_default(); | ||
z_owned_closure_reply_t closure_reply = z_closure(reply_handler, NULL, &s); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters