-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix cucumber console wallet startup (#3564)
Description --- - Fixed an issue with the wallet startup promise not resolving consistently (_... a broken fix introduced by me in #3534_). - Added explicit startup markers (`Tari Console Wallet running...`) in the console wallet that will print to stdout for the sake of cucumber tests. These are scraped to indicate the wallet startup state. - Improved flaky test `Scenario: As a user I want to discover-peer via command line` - Added variable time out settings for `wallet.runCommand(command)` for the different `As a user I ... via command line` steps according to the higher-level logic. Motivation and Context --- Cucumber tests were not running successfully. How Has This Been Tested? --- Cucumber: - `npm test -- --profile ci --name "via command line"` - `npm test -- --tags "not @long-running and not @broken"` Sample stdout output: ``` rust Installing new config file at C:\Users\pluto\Documents\Code\@tari-project\integration_tests\temp\base_nodes\202111121208\Wallet5529-WALLET\config\config.toml Initializing logging according to "C:\\Users\\pluto\\Documents\\Code\\@tari-project\\integration_tests\\log4rs\\wallet.yml" Tari Console Wallet running... (gRPC mode started) Initializing logging according to "C:\\Users\\pluto\\Documents\\Code\\@tari-project\\integration_tests\\log4rs\\wallet.yml" Tari Console Wallet running... (Command mode started) ============== Command Runner ============== 1. discover-peer e88343a9b0d734a0ed98e0e3b558493d91220216599b676de12c76a2ce7ef369 Waiting for connectivity... ✅ 🌎 Peer discovery started. ⚡️ Discovery succeeded in 77ms. [05696c85b9a0ab4b] PK=e88343a9b0d734a0ed98e0e3b558493d91220216599b676de12c76a2ce7ef369 (/ip4/127.0.0.1/tcp/5537) - . Type: BASE_NODE. User agent: tari/basenode/0.21.0. Last connected at 2021-11-12 10:08:51. Tari Console Wallet running... (Command mode completed) Tari Console Wallet running... (gRPC mode started) >>>> End of ./temp/base_nodes/202111121208/Wallet5529-WALLET/log/stdout.log ``` ``` rust Installing new config file at C:\Users\pluto\Documents\Code\@tari-project\integration_tests\temp\base_nodes\202111121210\Wallet5586-WALLET\config\config.toml Initializing logging according to "C:\\Users\\pluto\\Documents\\Code\\@tari-project\\integration_tests\\log4rs\\wallet.yml" Tari Console Wallet running... (gRPC mode started) Initializing logging according to "C:\\Users\\pluto\\Documents\\Code\\@tari-project\\integration_tests\\log4rs\\wallet.yml" Tari Console Wallet running... (Command mode started) ============== Command Runner ============== 1. set-custom-base-node a637ce92c0e07ff9fc39a023a1b6530d1873be782cc27e258995af27bb5d3101 /ip4/127.0.0.1/tcp/5581 Setting base node peer... a637ce92c0e07ff9fc39a023a1b6530d1873be782cc27e258995af27bb5d3101::/ip4/127.0.0.1/tcp/5581 Custom base node peer saved in wallet database. Tari Console Wallet running... (Command mode completed) Tari Console Wallet running... (gRPC mode started) Initializing logging according to "C:\\Users\\pluto\\Documents\\Code\\@tari-project\\integration_tests\\log4rs\\wallet.yml" Tari Console Wallet running... (Command mode started) ============== Command Runner ============== 1. clear-custom-base-node Custom base node peer cleared from wallet database. Tari Console Wallet running... (Command mode completed) Tari Console Wallet running... (gRPC mode started) >>>> End of ./temp/base_nodes/202111121210/Wallet5586-WALLET/log/stdout.log ```
- Loading branch information
1 parent
82cbad1
commit e177d37
Showing
4 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters