diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-08-28 08:44:12 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-08-28 08:44:12 +0200 |
commit | 92923cd40b645af844c5ed1055a0a45c6daa3c89 (patch) | |
tree | 9543dfec1918d142dd757bcf1378af65ecea6e3d /tests/test_reqrep.cpp | |
parent | 035c937ee7452708a9dd3abd851fda6a753808f4 (diff) |
bug in pipe deactivation fixed
Diffstat (limited to 'tests/test_reqrep.cpp')
-rw-r--r-- | tests/test_reqrep.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_reqrep.cpp b/tests/test_reqrep.cpp index f33b4b5..eab7e8b 100644 --- a/tests/test_reqrep.cpp +++ b/tests/test_reqrep.cpp @@ -39,6 +39,7 @@ 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); @@ -58,8 +59,7 @@ int main() p.first->send (m1, 0); - // Now use polling. Timout makes test abort on error. - int rc = zmq::poll(&items [0], 2, 1000); + int rc = zmq::poll(&items [0], 2, -1); assert (rc == 1); assert ((items [1].revents & ZMQ_POLLIN) != 0); |