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
062b510b
Commit
062b510b
authored
Aug 13, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test case test_probe_router_router does not receive auto-generated routing id
Solution: add receive call for routing id
parent
d78152bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test_probe_router.cpp
tests/test_probe_router.cpp
+3
-2
No files found.
tests/test_probe_router.cpp
View file @
062b510b
...
...
@@ -66,11 +66,12 @@ void test_probe_router_router ()
send_string_expect_success
(
server
,
"X"
,
ZMQ_SNDMORE
);
send_string_expect_success
(
server
,
"Hello"
,
0
);
// receive the routing ID, which is auto-generated in this case, since the
// peer did not set one explicitly
TEST_ASSERT_EQUAL_INT
(
5
,
TEST_ASSERT_SUCCESS_ERRNO
(
zmq_recv
(
client
,
buffer
,
255
,
0
)));
// TODO shouldn't this be the following? but that fails, since the content is different (but of length 5)
// recv_string_expect_success (client, "Hello", 0);
recv_string_expect_success
(
client
,
"Hello"
,
0
);
test_context_socket_close
(
server
);
test_context_socket_close
(
client
);
...
...
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