Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
cleaning up unused cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgrunewald committed May 10, 2022
1 parent 35c3f3e commit cd08913
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions test/miner_metrics_export_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,10 @@ metrics_export_test(Config) ->
%% ------------------------------------------------------------------

setup_test(Config, VarMap) ->
AllMiners = ?config(miners, Config),
Validators = ?config(validators, Config),
Gateways = ?config(gateways, Config),
RunChainOnGateways = proplists:get_value(gateways_run_chain, Config, true),
{_, Locations} = lists:unzip(initialize_chain(Validators, Config, VarMap)),

case RunChainOnGateways of
true ->
_ = miner_ct_utils:integrate_genesis_block(hd(Validators), Gateways);
false ->
ok
end,

%% the radio ports used to be fetched from miner lora as part of init_per_testcase
%% but the port is only opened now after a chain is up and been consulted to
%% determine if validators are running POCs
Expand All @@ -91,13 +82,7 @@ setup_test(Config, VarMap) ->
lists:zip(RadioPorts, Locations), true),
miner_fake_radio_backplane ! go,
%% wait till height 2
case RunChainOnGateways of
true ->
ok = miner_ct_utils:wait_for_gte(height, AllMiners, 2, all, 30);
false ->
ok = miner_ct_utils:wait_for_gte(height, Validators, 2, all, 30)
end,
ok.
ok = miner_ct_utils:wait_for_gte(height, Validators, 2, all, 30).

scrape_metrics(Port) ->
Url = "http://localhost:" ++ integer_to_list(Port) ++ "/metrics",
Expand Down

0 comments on commit cd08913

Please sign in to comment.