Skip to content

Commit

Permalink
Update big tests after simplifying functions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Mar 9, 2022
1 parent 3301486 commit b00733a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions big_tests/tests/mod_global_distrib_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,11 @@ unpause_refresher(NodeName, _) ->
%% Reads Redis to confirm that endpoints (in Redis) are overwritten
%% with `advertised_endpoints` option value
test_advertised_endpoints_override_endpoints(_Config) ->
Endps = execute_on_each_node(mod_global_distrib_mapping_redis,
get_endpoints,
[<<"reg1">>]),
true = lists:all(fun({ok, E}) ->
lists:sort(iptuples_to_string(E)) =:=
lists:sort(advertised_endpoints()) end, Endps).
Endps = execute_on_each_node(mod_global_distrib_mapping_redis, get_endpoints, [<<"reg1">>]),
true = lists:all(
fun(E) ->
lists:sort(iptuples_to_string(E)) =:= lists:sort(advertised_endpoints())
end, Endps).

%% @doc Verifies that hosts refresher will restart the outgoing connection pool if
%% it goes down for some reason (crash or domain unavailability).
Expand Down Expand Up @@ -1295,8 +1294,8 @@ service_port() ->

wait_for_domain(Node, Domain) ->
F = fun() ->
{ok, Domains} = rpc:call(Node, mod_global_distrib_mapping, all_domains, []),
lists:member(Domain, Domains)
Domains = rpc:call(Node, mod_global_distrib_mapping, all_domains, []),
lists:member(Domain, Domains)
end,
mongoose_helper:wait_until(F, true, #{name => {wait_for_domain, Node, Domain}}).

Expand Down

0 comments on commit b00733a

Please sign in to comment.