Skip to content

Commit

Permalink
test: increase confirmations for testnet test
Browse files Browse the repository at this point in the history
Fixed the bug on testnet tests caused by goerli reorgs.

Updated the CHANGELOG.
  • Loading branch information
renan061 committed Apr 12, 2023
1 parent 3d23f70 commit 4e1064b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.10.0] - 2023-03-29
- feat: remove auth config.
## [0.10.0] - 2023-04-12
- chore: sort Cargo.toml dependencies.
- feat: remove auth config.
- chore: run cargo-outdated.
- chore: run cargo-clippy.
- test: increase confirmations for testnet test.

## [0.9.1] - 2023-03-09
- Remove `structopt` and add `clap` for CLI configuration.
Expand Down
4 changes: 2 additions & 2 deletions tests/testnet_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ where
let transaction = Transaction {
from: from.into(),
to: to.into(),
value: Value::Number(utilities::gwei_to_wei(AMOUNT).into()),
value: Value::Number(utilities::gwei_to_wei(AMOUNT)),
call_data: None,
};
manager
.send_transaction(transaction, 0, Priority::Normal)
.send_transaction(transaction, 3, Priority::Normal)
.await
}

Expand Down
1 change: 1 addition & 0 deletions tests/utilities/src/utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ impl ProviderWrapper {
);
println!("[TEST LOG] Delta 1 = {:?}", delta1);
println!("[TEST LOG] Delta 2 = {:?}", delta2);
println!("[TEST LOG] Amount = {:?}", amount);

assert!(account1_after <= balance.account1_before - amount); // weak assertion
assert!(account2_after == balance.account2_before + amount);
Expand Down

0 comments on commit 4e1064b

Please sign in to comment.