diff options
| author | Philip Kuryloski <kuryloskip@vmware.com> | 2020-06-10 09:58:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 09:58:29 +0200 |
| commit | 8f39952913b26c6106fe0393a07f075a3020b348 (patch) | |
| tree | 9cafb49003ebe2fd9cce82b3915593f82b868cfd | |
| parent | 03f1e7a0c1dde2e1395e941c912289b485f1b4a2 (diff) | |
| parent | a3fa9c857b2c79c4bec8a41db1f1438a91396ebb (diff) | |
| download | rabbitmq-server-git-8f39952913b26c6106fe0393a07f075a3020b348.tar.gz | |
Merge pull request #2376 from rabbitmq/simple-ha-test-stability
Stricter setup in the confirms_survive_* tests
| -rw-r--r-- | test/simple_ha_SUITE.erl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/simple_ha_SUITE.erl b/test/simple_ha_SUITE.erl index 7cf21a92eb..10d8eda9ee 100644 --- a/test/simple_ha_SUITE.erl +++ b/test/simple_ha_SUITE.erl @@ -259,6 +259,22 @@ confirms_survive(Config, DeathFun) -> auto_delete = false, durable = true}), + %% send one message to ensure the channel is flowing + amqp_channel:register_confirm_handler(Node1Channel, self()), + #'confirm.select_ok'{} = amqp_channel:call(Node1Channel, #'confirm.select'{}), + + Payload = <<"initial message">>, + ok = amqp_channel:call(Node1Channel, + #'basic.publish'{routing_key = Queue}, + #amqp_msg{payload = Payload}), + + ok = receive + #'basic.ack'{multiple = false} -> ok; + #'basic.nack'{multiple = false} -> message_nacked + after + 5000 -> confirm_not_received + end, + %% send a bunch of messages from the producer ProducerPid = rabbit_ha_test_producer:create(Node2Channel, Queue, self(), true, Msgs), |
