summaryrefslogtreecommitdiff
path: root/tests/test_reqrep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_reqrep.cpp')
-rw-r--r--tests/test_reqrep.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_reqrep.cpp b/tests/test_reqrep.cpp
index 7fa976e..f33b4b5 100644
--- a/tests/test_reqrep.cpp
+++ b/tests/test_reqrep.cpp
@@ -39,6 +39,9 @@ int main()
{
const string returned = zmqtestutil::ping_pong (p, expect);
assert (expect == returned);
+ // Adjust socket state, so that first is clean for another send.
+ zmq::message_t mx ;
+ p.first->recv(&mx, 0);
}
{