@@ -180,7 +180,8 @@ join_cluster_bad_operations(Config) ->
180
180
ok = stop_app (Hare ),
181
181
assert_failure (fun () -> start_app (Hare ) end ),
182
182
ok = start_app (Rabbit ),
183
- ok = start_app (Hare ),
183
+ % % The Erlang VM has stopped after previous rabbit app failure
184
+ ok = rabbit_ct_broker_helpers :start_node (Config , Hare ),
184
185
ok .
185
186
186
187
% % This tests that the nodes in the cluster are notified immediately of a node
@@ -532,25 +533,34 @@ erlang_config(Config) ->
532
533
ok = reset (Hare ),
533
534
ok = rpc :call (Hare , application , set_env ,
534
535
[rabbit , cluster_nodes , {[" Mike's computer" ], disc }]),
536
+ % % Rabbit app stops abnormally, node goes down
535
537
assert_failure (fun () -> start_app (Hare ) end ),
536
538
assert_not_clustered (Rabbit ),
537
539
538
540
% % If we use an invalid node type, the node fails to start.
541
+ % % The Erlang VM has stopped after previous rabbit app failure
542
+ ok = rabbit_ct_broker_helpers :start_node (Config , Hare ),
539
543
ok = stop_app (Hare ),
540
544
ok = reset (Hare ),
541
545
ok = rpc :call (Hare , application , set_env ,
542
546
[rabbit , cluster_nodes , {[Rabbit ], blue }]),
547
+ % % Rabbit app stops abnormally, node goes down
543
548
assert_failure (fun () -> start_app (Hare ) end ),
544
549
assert_not_clustered (Rabbit ),
545
550
546
551
% % If we use an invalid cluster_nodes conf, the node fails to start.
552
+ % % The Erlang VM has stopped after previous rabbit app failure
553
+ ok = rabbit_ct_broker_helpers :start_node (Config , Hare ),
547
554
ok = stop_app (Hare ),
548
555
ok = reset (Hare ),
549
556
ok = rpc :call (Hare , application , set_env ,
550
557
[rabbit , cluster_nodes , true ]),
558
+ % % Rabbit app stops abnormally, node goes down
551
559
assert_failure (fun () -> start_app (Hare ) end ),
552
560
assert_not_clustered (Rabbit ),
553
561
562
+ % % The Erlang VM has stopped after previous rabbit app failure
563
+ ok = rabbit_ct_broker_helpers :start_node (Config , Hare ),
554
564
ok = stop_app (Hare ),
555
565
ok = reset (Hare ),
556
566
ok = rpc :call (Hare , application , set_env ,
0 commit comments