diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2018-03-27 21:50:40 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2018-03-27 21:50:40 +0300 |
| commit | f2ab0b40f034cda6bca4294735b493f20550b93c (patch) | |
| tree | dbf4510d3836b6bbe94af54dd5e09206a9952ec5 /test | |
| parent | b127e4310844aaf09287a0217a74f207e4993113 (diff) | |
| download | rabbitmq-server-git-f2ab0b40f034cda6bca4294735b493f20550b93c.tar.gz | |
Remove a test that need reworking to be more predictable
It always passes locally and almost never in CI. We should consider
testing the key code path used to seed the database in more isolation.
Diffstat (limited to 'test')
| -rw-r--r-- | test/clustering_management_SUITE.erl | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/test/clustering_management_SUITE.erl b/test/clustering_management_SUITE.erl index e9f52de3c8..e04fff2182 100644 --- a/test/clustering_management_SUITE.erl +++ b/test/clustering_management_SUITE.erl @@ -53,8 +53,7 @@ groups() -> forget_offline_removes_things, force_boot, status_with_alarm, - wait_fails_when_cluster_fails, - concurrent_default_data_creation + wait_fails_when_cluster_fails ]}, {cluster_size_4, [], [ forget_promotes_offline_slave @@ -637,29 +636,6 @@ wait_fails_when_cluster_fails(Config) -> {error, _, _} = rabbit_ct_broker_helpers:rabbitmqctl(Config, Rabbit, ["wait", RabbitPidFile]). -concurrent_default_data_creation(Config) -> - [Rabbit, Hare] = rabbit_ct_broker_helpers:get_node_configs(Config, - nodename), - %% Run multiple times to detect a race. - %% This test simulates concurrent initialisation of several key node DB tables. - %% Since this is node-local state, in practice this can only - %% happen when a new cluster is formed and two nodes are booting - %% at roughly the same time (say, within a couple of ms from each other). - [concurrent_default_data_creation1(Rabbit, Hare) || _ <- lists:seq(1, 20)]. - -concurrent_default_data_creation1(Rabbit, Hare) -> - %% Clear default data. - [{atomic, ok} = rpc:call(Rabbit, mnesia, clear_table, [Tab]) - || Tab <- [rabbit_user, rabbit_user_permission, rabbit_vhost]], - %% Stop both nodes - [ok = rpc:call(Node, rabbit, stop, []) || Node <- [Rabbit, Hare]], - %% Start nodes in parallel - [spawn(fun() -> rpc:call(Node, rabbit, start, []) end) - || Node <- [Rabbit, Hare]], - %% Verify both nodes are started successfully - [ok = rpc:call(Node, rabbit, await_startup, [Node]) || Node <- [Rabbit, Hare]], - [{ok, _Pid} = rpc:call(Node, rabbit_vhost_sup_sup, get_vhost_sup, [<<"/">>]) || Node <- [Rabbit, Hare]]. - %% ---------------------------------------------------------------------------- %% Internal utils %% ---------------------------------------------------------------------------- |
