mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-20 14:02:41 +02:00
Problem: test cases are failing on slower PCs (eee PC)
Solution: raise timeouts from 100-150 msec to 250 msec
This commit is contained in:
@@ -36,7 +36,7 @@ void test_round_robin_out (void *ctx)
|
||||
rep [peer] = zmq_socket (ctx, ZMQ_REP);
|
||||
assert (rep [peer]);
|
||||
|
||||
int timeout = 100;
|
||||
int timeout = 250;
|
||||
rc = zmq_setsockopt (rep [peer], ZMQ_RCVTIMEO, &timeout, sizeof (int));
|
||||
assert (rc == 0);
|
||||
|
||||
@@ -83,7 +83,7 @@ void test_req_only_listens_to_current_peer (void *ctx)
|
||||
router [i] = zmq_socket (ctx, ZMQ_ROUTER);
|
||||
assert (router [i]);
|
||||
|
||||
int timeout = 100;
|
||||
int timeout = 250;
|
||||
rc = zmq_setsockopt (router [i], ZMQ_RCVTIMEO, &timeout, sizeof (timeout));
|
||||
assert (rc == 0);
|
||||
|
||||
@@ -195,7 +195,7 @@ void test_block_on_send_no_peers (void *ctx)
|
||||
void *sc = zmq_socket (ctx, ZMQ_REQ);
|
||||
assert (sc);
|
||||
|
||||
int timeout = 100;
|
||||
int timeout = 250;
|
||||
int rc = zmq_setsockopt (sc, ZMQ_SNDTIMEO, &timeout, sizeof (timeout));
|
||||
assert (rc == 0);
|
||||
|
||||
|
Reference in New Issue
Block a user