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
1e9a8c97
Unverified
Commit
1e9a8c97
authored
Mar 08, 2019
by
Doron Somech
Committed by
GitHub
Mar 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3441 from bluca/test_xpub_nodrop_flaky
Problem: text_xpub_nodrop sometimes fails
parents
2f5c2f4a
0bbd38f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
test_xpub_nodrop.cpp
tests/test_xpub_nodrop.cpp
+4
-5
No files found.
tests/test_xpub_nodrop.cpp
View file @
1e9a8c97
...
...
@@ -43,7 +43,7 @@ void tearDown ()
void
test
()
{
// Create a publisher
void
*
pub
=
test_context_socket
(
ZMQ_PUB
);
void
*
pub
=
test_context_socket
(
ZMQ_
X
PUB
);
int
hwm
=
2000
;
TEST_ASSERT_SUCCESS_ERRNO
(
zmq_setsockopt
(
pub
,
ZMQ_SNDHWM
,
&
hwm
,
4
));
...
...
@@ -61,10 +61,9 @@ void test ()
// Subscribe for all messages.
TEST_ASSERT_SUCCESS_ERRNO
(
zmq_setsockopt
(
sub
,
ZMQ_SUBSCRIBE
,
""
,
0
));
// we must wait for the subscription to be processed here, so we just
// hope SETTLE_TIME suffices; otherwise some or all published messages
// might be lost
msleep
(
SETTLE_TIME
);
// we must wait for the subscription to be processed here, otherwise some
// or all published messages might be lost
recv_string_expect_success
(
pub
,
"
\1
"
,
0
);
int
hwmlimit
=
hwm
-
1
;
int
send_count
=
0
;
...
...
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