diff options
| author | Daniil Fedotov <hairyhum@gmail.com> | 2019-05-27 11:22:35 -0400 |
|---|---|---|
| committer | Daniil Fedotov <hairyhum@gmail.com> | 2019-05-27 11:22:35 -0400 |
| commit | eab9304802eb090589b5a43e1014784cd52420ef (patch) | |
| tree | 0032a179fe4ae7d07d31f025532535bceb0885cc | |
| parent | 6e4a6aea122a04810004c571bce104abc0bb8996 (diff) | |
| download | rabbitmq-server-git-eab9304802eb090589b5a43e1014784cd52420ef.tar.gz | |
Improve error handling and increase timeout in confirm-reject test
This is to prevent false-positives on slow systems and detect genuine
errors better.
| -rw-r--r-- | test/confirms_rejects_SUITE.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/confirms_rejects_SUITE.erl b/test/confirms_rejects_SUITE.erl index 8805b71ffe..353d8f4cfa 100644 --- a/test/confirms_rejects_SUITE.erl +++ b/test/confirms_rejects_SUITE.erl @@ -158,8 +158,9 @@ mixed_dead_alive_queues_reject(Config) -> #amqp_msg{payload = <<"HI">>}), receive - {'basic.ack',_,_} -> ok - after 10000 -> + {'basic.ack',_,_} -> ok; + {'basic.nack',_,_,_} -> error(expecting_ack_got_nack) + after 50000 -> error(timeout_waiting_for_initial_ack) end, @@ -172,7 +173,7 @@ mixed_dead_alive_queues_reject(Config) -> receive {'basic.nack',_,_,_} -> ok; {'basic.ack',_,_} -> error(expecting_nack_got_ack) - after 10000 -> + after 50000 -> error(timeout_waiting_for_ack) end. |
