Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reintroduce 2 session pub-sub pico test #187

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions tests/universal/network/pub_sub.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,8 @@ template <typename Talloc>
void pub_sub(Talloc& alloc) {
KeyExpr ke("zenoh/test");
auto session1 = Session::open(Config::create_default());
#ifdef ZENOHCXX_ZENOHC
auto session2 = Session::open(Config::create_default());
#else
// TODO: test fails on zenoh-pico with 2 session instances. To be fixed
auto& session2 = session1;
#endif

auto publisher = session1.declare_publisher(ke);

std::this_thread::sleep_for(1s);
Expand Down Expand Up @@ -88,12 +84,7 @@ template <typename Talloc>
void put_sub(Talloc& alloc) {
KeyExpr ke("zenoh/test");
auto session1 = Session::open(Config::create_default());
#ifdef ZENOHCXX_ZENOHC
auto session2 = Session::open(Config::create_default());
#else
// TODO: test fails on zenoh-pico with 2 session instances. To be fixed
auto& session2 = session1;
#endif

std::this_thread::sleep_for(1s);

Expand Down
2 changes: 1 addition & 1 deletion zenoh-c
2 changes: 1 addition & 1 deletion zenoh-pico
Loading