@@ -15,6 +15,7 @@ all() ->
15
15
start_and_then_force_remove_some_users ,
16
16
start_and_then_soft_remove_some_users ,
17
17
start_and_then_force_remove_more_users_than_running ,
18
+ force_remove_more_users_with_no_running ,
18
19
start_and_then_soft_remove_users_that_ignore_the_error ,
19
20
start_and_then_stop_cannot_rerun ,
20
21
after_reset_can_run_again
@@ -100,6 +101,14 @@ start_and_then_force_remove_more_users_than_running(_) ->
100
101
? assertEqual ({ok , 2 }, Removed ),
101
102
test_helpers :wait_until_scenario_has_users (testing_scenario , 0 , 2 ).
102
103
104
+ force_remove_more_users_with_no_running (_ ) ->
105
+ Ret = amoc_do (testing_scenario , 0 ),
106
+ ? assertEqual (ok , Ret ),
107
+ test_helpers :wait_until_scenario_has_users (testing_scenario , 0 , 0 ),
108
+ Removed = amoc :remove (10 , true ),
109
+ ? assertEqual ({ok , 0 }, Removed ),
110
+ test_helpers :wait_until_scenario_has_users (testing_scenario , 0 , 0 ).
111
+
103
112
start_and_then_soft_remove_users_that_ignore_the_error (_ ) ->
104
113
Ret = amoc_do (testing_scenario_with_state , 2 , test_helpers :all_vars_with_state ()),
105
114
? assertEqual (ok , Ret ),
0 commit comments