refactor: remove skip_balance_check from run_test signature
This field is redundant, as it can be read directly from `config`
This commit is contained in:
@@ -98,10 +98,9 @@ impl TychoRunner {
|
||||
expected_components: &Vec<ProtocolComponentWithTestConfig>,
|
||||
start_block: u64,
|
||||
stop_block: u64,
|
||||
skip_balance_check: bool,
|
||||
) -> miette::Result<R>
|
||||
where
|
||||
F: FnOnce(&Vec<ProtocolComponentWithTestConfig>, u64, u64, bool) -> R,
|
||||
F: FnOnce(&Vec<ProtocolComponentWithTestConfig>, u64, u64) -> R,
|
||||
{
|
||||
let (tx, rx): (Sender<bool>, Receiver<bool>) = mpsc::channel();
|
||||
let db_url = self.db_url.clone();
|
||||
@@ -141,7 +140,7 @@ impl TychoRunner {
|
||||
thread::sleep(Duration::from_secs(3));
|
||||
|
||||
// Run the provided function
|
||||
let result = func(expected_components, start_block, stop_block, skip_balance_check);
|
||||
let result = func(expected_components, start_block, stop_block);
|
||||
|
||||
tx.send(true)
|
||||
.expect("Failed to send termination message");
|
||||
|
||||
Reference in New Issue
Block a user