From d6d7855f37eed7d5928fecd3175ab230d69f29a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ceyhun=20=C5=9Een?= Date: Mon, 7 Oct 2024 15:53:24 +0300 Subject: [PATCH] test_case: Remove multiple backend nodes. --- src/test_case.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/test_case.rs b/src/test_case.rs index debd493..9a0042d 100644 --- a/src/test_case.rs +++ b/src/test_case.rs @@ -111,6 +111,7 @@ impl TestCaseRunner { let test_case = T::test_config(); let env = T::test_env(); let bitcoin = T::bitcoin_config(); + let bridge_backend = T::bridge_backend_config(); let prover = T::prover_config(); let sequencer = T::sequencer_config(); let sequencer_rollup = default_rollup_config(); @@ -141,15 +142,6 @@ impl TestCaseRunner { }); } - let mut bridge_backend_confs = vec![]; - for i in 0..test_case.n_nodes { - let data_dir = bitcoin_dir.join(i.to_string()); - std::fs::create_dir_all(&data_dir) - .with_context(|| format!("Failed to create {} directory", data_dir.display()))?; - - bridge_backend_confs.push(BridgeBackendConfig::default()) - } - // Target first bitcoin node as DA for now let da_config: BitcoinServiceConfig = bitcoin_confs[0].clone().into(); @@ -242,6 +234,7 @@ impl TestCaseRunner { Ok(TestConfig { bitcoin: bitcoin_confs, + bridge_backend, sequencer: FullSequencerConfig { rollup: sequencer_rollup, dir: sequencer_dir, @@ -264,7 +257,6 @@ impl TestCaseRunner { env: env.full_node(), }, test_case, - bridge_backend: bridge_backend_confs, }) } }