Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Jun 14, 2024
1 parent 42d65c5 commit 58f94c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/amoc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ all() ->
start_and_then_force_remove_some_users,
start_and_then_soft_remove_some_users,
start_and_then_force_remove_more_users_than_running,
force_remove_more_users_with_no_running,
start_and_then_soft_remove_users_that_ignore_the_error,
start_and_then_stop_cannot_rerun,
after_reset_can_run_again
Expand Down Expand Up @@ -100,6 +101,14 @@ start_and_then_force_remove_more_users_than_running(_) ->
?assertEqual({ok, 2}, Removed),
test_helpers:wait_until_scenario_has_users(testing_scenario, 0, 2).

force_remove_more_users_with_no_running(_) ->
Ret = amoc_do(testing_scenario, 0),
?assertEqual(ok, Ret),
test_helpers:wait_until_scenario_has_users(testing_scenario, 0, 0),
Removed = amoc:remove(10, true),
?assertEqual({ok, 0}, Removed),
test_helpers:wait_until_scenario_has_users(testing_scenario, 0, 0).

start_and_then_soft_remove_users_that_ignore_the_error(_) ->
Ret = amoc_do(testing_scenario_with_state, 2, test_helpers:all_vars_with_state()),
?assertEqual(ok, Ret),
Expand Down

0 comments on commit 58f94c0

Please sign in to comment.