diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2017-11-06 23:34:27 -0800 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2017-11-06 23:34:27 -0800 |
commit | bd7c497e5d1a1924661df2190d3c38f11add5b2b (patch) | |
tree | 54740df5c18911fd75bcf911fd095f452f02ae3e | |
parent | 1caea8f48c17ef71fd050139a7baab10054f95f0 (diff) | |
download | rabbitmq-c-bd7c497e5d1a1924661df2190d3c38f11add5b2b.tar.gz |
test: Bump timeout in tests to 5spr443
500ms is too short, and regularly times out when running on travis.
-rw-r--r-- | tests/test_basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_basic.c b/tests/test_basic.c index 588ab5d..5a8fd57 100644 --- a/tests/test_basic.c +++ b/tests/test_basic.c @@ -111,7 +111,7 @@ char *basic_get(amqp_connection_state_t connection_state_, const char *queue_name_, uint64_t *out_body_size_) { amqp_rpc_reply_t rpc_reply; amqp_time_t deadline; - struct timeval timeout = { 0, 500 }; + struct timeval timeout = { 5, 0 }; int time_rc = amqp_time_from_now(&deadline, &timeout); assert(time_rc == AMQP_STATUS_OK); @@ -164,7 +164,7 @@ char *consume_message(amqp_connection_state_t connection_state_, assert(result != NULL); amqp_envelope_t envelope; - struct timeval timeout = {0, 500}; + struct timeval timeout = { 5, 0 }; amqp_rpc_reply_t rpc_reply = amqp_consume_message(connection_state_, &envelope, &timeout, 0); assert(rpc_reply.reply_type == AMQP_RESPONSE_NORMAL); |