Merge pull request #3968 from bluca/fuzzers

Problem: test_req_relaxed occasionally fails
This commit is contained in:
Doron Somech 2020-06-28 08:40:48 +03:00 committed by GitHub
commit d78ecb8dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "testutil.hpp"
#include "testutil.hpp"
#include "testutil_unity.hpp"
@ -63,11 +61,12 @@ void setUp ()
zmq_setsockopt (rep[peer], ZMQ_RCVTIMEO, &timeout, sizeof (int)));
TEST_ASSERT_SUCCESS_ERRNO (zmq_connect (rep[peer], my_endpoint));
// These tests require strict ordering, so wait for the connections to
// happen before opening the next, so that messages flow in the
// expected direction
msleep (SETTLE_TIME);
}
// We have to give the connects time to finish otherwise the requests
// will not properly round-robin. We could alternatively connect the
// REQ sockets to the REP sockets.
msleep (SETTLE_TIME);
}
void tearDown ()