Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
f13377de
Commit
f13377de
authored
May 22, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test_pub_invert_matching failing
Solution: insert some sleeps to remedy timing dependencies
parent
12c6ae22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test_pub_invert_matching.cpp
tests/test_pub_invert_matching.cpp
+4
-0
No files found.
tests/test_pub_invert_matching.cpp
View file @
f13377de
...
...
@@ -65,6 +65,7 @@ void test ()
// Send a message with the first prefix
send_string_expect_success
(
pub
,
PREFIX1
,
0
);
msleep
(
SETTLE_TIME
);
// sub1 should receive it, but not sub2
recv_string_expect_success
(
sub1
,
PREFIX1
,
ZMQ_DONTWAIT
);
...
...
@@ -73,6 +74,7 @@ void test ()
// Send a message with the second prefix
send_string_expect_success
(
pub
,
PREFIX2
,
0
);
msleep
(
SETTLE_TIME
);
// sub2 should receive it, but not sub1
recv_string_expect_success
(
sub2
,
PREFIX2
,
ZMQ_DONTWAIT
);
...
...
@@ -92,6 +94,7 @@ void test ()
// Send a message with the first prefix
send_string_expect_success
(
pub
,
PREFIX1
,
0
);
msleep
(
SETTLE_TIME
);
// sub2 should receive it, but not sub1
recv_string_expect_success
(
sub2
,
PREFIX1
,
ZMQ_DONTWAIT
);
...
...
@@ -100,6 +103,7 @@ void test ()
// Send a message with the second prefix
send_string_expect_success
(
pub
,
PREFIX2
,
0
);
msleep
(
SETTLE_TIME
);
// sub1 should receive it, but not sub2
recv_string_expect_success
(
sub1
,
PREFIX2
,
ZMQ_DONTWAIT
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment