Skip to content

Commit

Permalink
test_case: Remove multiple backend nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Oct 7, 2024
1 parent 2be6799 commit d6d7855
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/test_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ impl<T: TestCase> TestCaseRunner<T> {
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();
Expand Down Expand Up @@ -141,15 +142,6 @@ impl<T: TestCase> TestCaseRunner<T> {
});
}

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();

Expand Down Expand Up @@ -242,6 +234,7 @@ impl<T: TestCase> TestCaseRunner<T> {

Ok(TestConfig {
bitcoin: bitcoin_confs,
bridge_backend,
sequencer: FullSequencerConfig {
rollup: sequencer_rollup,
dir: sequencer_dir,
Expand All @@ -264,7 +257,6 @@ impl<T: TestCase> TestCaseRunner<T> {
env: env.full_node(),
},
test_case,
bridge_backend: bridge_backend_confs,
})
}
}
Expand Down

0 comments on commit d6d7855

Please sign in to comment.