diff options
| author | kjnilsson <knilsson@pivotal.io> | 2020-09-17 14:33:01 +0100 |
|---|---|---|
| committer | kjnilsson <knilsson@pivotal.io> | 2020-09-17 14:33:33 +0100 |
| commit | 8f75eb5e984dea13ceaff075b40712e5ac1ace84 (patch) | |
| tree | c3a5bf57a7a1d367f211d87b08f443e24e099272 /test | |
| parent | 280a22f8a8ccaa8fdb123b6da2a031ff6b8c53f7 (diff) | |
| download | rabbitmq-server-git-8f75eb5e984dea13ceaff075b40712e5ac1ace84.tar.gz | |
quorum_queue_SUITE test reliability
For mixed versions.
Diffstat (limited to 'test')
| -rw-r--r-- | test/quorum_queue_SUITE.erl | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/quorum_queue_SUITE.erl b/test/quorum_queue_SUITE.erl index cc54aae78e..e8fffd88e0 100644 --- a/test/quorum_queue_SUITE.erl +++ b/test/quorum_queue_SUITE.erl @@ -430,7 +430,12 @@ start_queue_concurrent(Config) -> ok. quorum_cluster_size_3(Config) -> - quorum_cluster_size_x(Config, 3, 3). + case is_mixed_versions() of + true -> + {skip, "quorum_cluster_size_3 tests isn't mixed version reliable"}; + false -> + quorum_cluster_size_x(Config, 3, 3) + end. quorum_cluster_size_7(Config) -> quorum_cluster_size_x(Config, 7, 5). @@ -1221,7 +1226,16 @@ delete_declare(Config) -> %% the actual data deletions happen after the call has returned as a quorum %% queue leader waits for all nodes to confirm they replicated the poison %% pill before terminating itself. - timer:sleep(1000), + case is_mixed_versions() of + true -> + %% when in mixed versions the QQ may not be able to apply the posion + %% pill for all nodes so need to wait longer for forced delete to + %% happen + timer:sleep(10000); + false -> + timer:sleep(1000) + end, + ?assertEqual({'queue.declare_ok', QQ, 0, 0}, declare(Ch, QQ, [{<<"x-queue-type">>, longstr, <<"quorum">>}])), |
