Skip to content

Commit 58f94c0

Browse files
committed
Increase test coverage
1 parent 42d65c5 commit 58f94c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/amoc_SUITE.erl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ all() ->
1515
start_and_then_force_remove_some_users,
1616
start_and_then_soft_remove_some_users,
1717
start_and_then_force_remove_more_users_than_running,
18+
force_remove_more_users_with_no_running,
1819
start_and_then_soft_remove_users_that_ignore_the_error,
1920
start_and_then_stop_cannot_rerun,
2021
after_reset_can_run_again
@@ -100,6 +101,14 @@ start_and_then_force_remove_more_users_than_running(_) ->
100101
?assertEqual({ok, 2}, Removed),
101102
test_helpers:wait_until_scenario_has_users(testing_scenario, 0, 2).
102103

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+
103112
start_and_then_soft_remove_users_that_ignore_the_error(_) ->
104113
Ret = amoc_do(testing_scenario_with_state, 2, test_helpers:all_vars_with_state()),
105114
?assertEqual(ok, Ret),

0 commit comments

Comments
 (0)