Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cli wallet cucumber #4739

Merged
merged 2 commits into from
Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions integration_tests/features/WalletCli.feature
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ Feature: Wallet CLI
When I create a burn transaction of 201552500000 uT from WALLET via command line
When I mine 5 blocks on BASE
Then all nodes are at height 20
# Then I wait for wallet WALLET to have at least 100 uT
Then I get balance of wallet WALLET is at most 18462621580 uT via command line
Then I get balance of wallet WALLET is at least 20000000000 uT via command line
# TODO: verify the actual burned kernel

@long-running
Expand Down
18 changes: 11 additions & 7 deletions integration_tests/features/WalletTransactions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,15 @@ Feature: Wallet Transactions
Given I have a seed node NODE
And I have 2 base nodes connected to all seed nodes
And I have wallet WALLET_A connected to all seed nodes
And I have mining node MINER connected to base node NODE and wallet WALLET_A
When mining node MINER mines 15 blocks
And I have wallet WALLET_B connected to all seed nodes
And I have mining node MINER_A connected to base node NODE and wallet WALLET_A
And I have mining node MINER_B connected to base node NODE and wallet WALLET_B
When mining node MINER_A mines 12 blocks
When mining node MINER_B mines 3 blocks
Then all nodes are at height 15
When I wait for wallet WALLET_A to have at least 55000000000 uT
When I create a burn transaction of 1000000 uT from WALLET_A at fee 100
When mining node MINER mines 10 blocks
Then all nodes are at height 25
Then wallet WALLET_A detects all transactions as Mined_Confirmed
When I wait for wallet WALLET_A to have at least 221552530060 uT
When I create a burn transaction of 201552500000 uT from WALLET_A at fee 100
When mining node MINER_B mines 5 blocks
Then all nodes are at height 20
Then wallet WALLET_A detects all transactions as Mined_Confirmed
When I wait for wallet WALLET_A to have at least 20000000000 uT
1 change: 1 addition & 0 deletions integration_tests/helpers/walletProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ class WalletProcess {
"--non-interactive",
"--network",
"localnet",
"--enable-grpc",
];
if (this.logFilePath) {
args.push("--log-config", this.logFilePath);
Expand Down