summaryrefslogtreecommitdiff
path: root/tests/test_pair.cpp
diff options
context:
space:
mode:
authorGuido Goldstein <zmq@a-nugget.de>2010-08-28 06:31:40 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-08-28 06:31:40 +0200
commit67aa788577fb49474dd7329b14316d25f1b3c08b (patch)
tree83a843db53e748c5ca53729f2780919b6c099b2c /tests/test_pair.cpp
parent4d9b046977f895f8d61731672a5e84967ed85eb2 (diff)
Fixed socket states in tests
Diffstat (limited to 'tests/test_pair.cpp')
-rw-r--r--tests/test_pair.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_pair.cpp b/tests/test_pair.cpp
index 01ea5b0..381874f 100644
--- a/tests/test_pair.cpp
+++ b/tests/test_pair.cpp
@@ -39,6 +39,9 @@ int main ()
{
const string returned = zmqtestutil::ping_pong (p, expect);
assert (expect == returned);
+ // Adjust socket state so that poll shows only 1 pending message.
+ zmq::message_t mx ;
+ p.first->recv(&mx, 0);
}
{