From cd08913745b5c509259331633d8a1276b54b5659 Mon Sep 17 00:00:00 2001 From: jeffgrunewald Date: Tue, 10 May 2022 11:50:48 -0400 Subject: [PATCH] cleaning up unused cases --- test/miner_metrics_export_SUITE.erl | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/test/miner_metrics_export_SUITE.erl b/test/miner_metrics_export_SUITE.erl index 7bf0e10bb..54551b1db 100644 --- a/test/miner_metrics_export_SUITE.erl +++ b/test/miner_metrics_export_SUITE.erl @@ -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 @@ -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",