Skip to content

Commit

Permalink
Merge pull request #1081 from kenstir/fix-test-cleanup-1080
Browse files Browse the repository at this point in the history
Fix #1080
  • Loading branch information
michalwski authored Dec 12, 2016
2 parents 618447e + 04861ea commit e325ee1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/ejabberd_tests/tests/metrics_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ finalise_by_all_metrics_are_global(Config, false) ->
finalise_by_all_metrics_are_global(Config, true) ->
Config1 = lists:keydelete(all_metrics_are_global, 1, Config),
%% TODO: Refactor once escalus becomes compatible with multiple nodes RPC
Config2 = distributed_helper:remove_node_from_cluster(ejabberd_node_utils:mim2(), Config1),
escalus:delete_users(Config2, escalus:get_users(?ONLY_GLOBAL_METRICS_GROUP_USERS)).
distributed_helper:remove_node_from_cluster(ejabberd_node_utils:mim2(),
Config1),
escalus:delete_users(Config1,
escalus:get_users(?ONLY_GLOBAL_METRICS_GROUP_USERS)).

all_metrics_are_global(Config) ->
case lists:keyfind(all_metrics_are_global, 1, Config) of
Expand Down

0 comments on commit e325ee1

Please sign in to comment.