From 67aa788577fb49474dd7329b14316d25f1b3c08b Mon Sep 17 00:00:00 2001 From: Guido Goldstein Date: Sat, 28 Aug 2010 06:31:40 +0200 Subject: Fixed socket states in tests --- tests/test_pair.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test_pair.cpp') 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); } { -- cgit v1.2.3