Skip to content

Commit 424fb5b

Browse files
committed
Skip service_domain_db:force_check_for_updates/0 for nodes which are not passed inside --test-hosts
Fixes ./tools/test-runner.sh --preset pgsql_cets --db pgsql --skip-cover --skip-small-tests --spec dynamic_domains.spec --one-node Failed to start a CTH: error:{{badrpc,nodedown}, [{distributed_helper,rpc, [#{node => mongooseim2@localhost}, service_domain_db,force_check_for_updates,[]], [{file, "big_tests/../test/common/distributed_helper.erl"}, {line,140}]}, {domain_helper,for_each_configured_domain,2, [{file,"domain_helper.erl"},{line,89}]}, {domain_helper, '-for_each_configured_domain/1-lc$^0/1-0-',2, [{file,"domain_helper.erl"},{line,78}]}, {domain_helper,for_each_configured_domain,1, [{file,"domain_helper.erl"},{line,78}]}, {ct_mongoose_hook,init,2, [{file, "big_tests/src/ct_mongoose_hook.erl"}, {line,40}]},
1 parent 712a504 commit 424fb5b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

big_tests/tests/domain_helper.erl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ delete_domain_password(Node, Domain) ->
7575
{ok, _} = rpc(Node, mongoose_domain_api, delete_domain_password, [Domain]).
7676

7777
for_each_configured_domain(F) ->
78-
[for_each_configured_domain(F, Opts) || {_, Opts} <- ct:get_config(hosts)],
78+
%% Skip nodes not specified in `--test-hosts'
79+
Keys = distributed_helper:get_node_keys(),
80+
[for_each_configured_domain(F, Opts)
81+
|| {Key, Opts} <- ct:get_config(hosts),
82+
lists:member(Key, Keys)],
7983
ok.
8084

8185
for_each_configured_domain(F, Opts) ->

0 commit comments

Comments
 (0)