Skip to content

Commit

Permalink
GH-744: Removed gas_price_result from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Syther007 committed Sep 13, 2024
1 parent b9e7572 commit b6a0b65
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions node/src/blockchain/blockchain_bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ mod tests {
let blockchain_interface = make_blockchain_interface_web3(Some(port));
let consuming_wallet = make_paying_wallet(b"somewallet");
let persistent_configuration =
PersistentConfigurationMock::default().gas_price_result(Ok(1));
PersistentConfigurationMock::default();
let wallet_1 = make_wallet("booga");
let wallet_2 = make_wallet("gulp");
let qualified_payables = vec![
Expand Down Expand Up @@ -773,11 +773,9 @@ mod tests {
let accountant_recipient = accountant.start().recipient();
let blockchain_interface = make_blockchain_interface_web3(Some(port));
let consuming_wallet = make_paying_wallet(b"somewallet");
let persistent_configuration =
PersistentConfigurationMock::default().gas_price_result(Ok(1));
let mut subject = BlockchainBridge::new(
Box::new(blockchain_interface),
Box::new(persistent_configuration),
Box::new(PersistentConfigurationMock::default()),
false,
);
subject.payable_payments_setup_subs_opt = Some(accountant_recipient);
Expand Down Expand Up @@ -1064,12 +1062,11 @@ mod tests {
.start();
let blockchain_interface_web3 = make_blockchain_interface_web3(Some(port));
let consuming_wallet = make_paying_wallet(b"consuming_wallet");
let gas_price = 1u64;
let system = System::new(test_name);
let agent = BlockchainAgentMock::default().consuming_wallet_result(consuming_wallet);
let msg = OutboundPaymentsInstructions::new(vec![], Box::new(agent), None);
let persistent_config =
configure_default_persistent_config(ZERO).gas_price_result(Ok(gas_price));
configure_default_persistent_config(ZERO);
let mut subject = BlockchainBridge::new(
Box::new(blockchain_interface_web3),
Box::new(persistent_config),
Expand Down

0 comments on commit b6a0b65

Please sign in to comment.