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
4fb004f5
Commit
4fb004f5
authored
Jul 14, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #614 from ckamm/fix-spec-req-fail
Fix intermittent failure in test_spec_req.
parents
bccf3d61
7de23c0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
test_spec_req.cpp
tests/test_spec_req.cpp
+11
-1
No files found.
tests/test_spec_req.cpp
View file @
4fb004f5
...
...
@@ -99,7 +99,17 @@ void test_req_only_listens_to_current_peer (void *ctx)
assert
(
rc
==
0
);
}
// Wait for connects to finish.
rc
=
zmq_poll
(
0
,
0
,
100
);
assert
(
rc
==
0
);
for
(
size_t
i
=
0
;
i
<
services
;
++
i
)
{
// There still is a race condition when a stale peer's message
// arrives at the REQ just after a request was sent to that peer.
// To avoid that happening in the test, sleep for a bit.
rc
=
zmq_poll
(
0
,
0
,
10
);
assert
(
rc
==
0
);
s_send_seq
(
req
,
"ABC"
,
SEQ_END
);
// Receive on router i
...
...
@@ -112,7 +122,7 @@ void test_req_only_listens_to_current_peer (void *ctx)
s_send_seq
(
router
[
j
],
"A"
,
0
,
reply
,
SEQ_END
);
}
// Rec
ieve only the good relp
y
// Rec
eive only the good repl
y
s_recv_seq
(
req
,
"GOOD"
,
SEQ_END
);
}
...
...
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