-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #499 This required a few changes: - Add an explicit `llvm-cov` command for running the payjoin-cli v1 e2e test, as it is not currently covered by `--all-features`. - Add graceful SIGINT handling to payjoin-cli v1. - Modify the `sigint` test function to wait until the child process completely exits, so that the interrupt handlers can actually print to stdout without panicking (`failed printing to stdout: Broken pipe (os error 32)`). This issue also affected the payjoin-cli v2 test, so this fix reduces the noise there as well (see #499 (comment)). - Remove unnecessary `tokio::spawn`s in tests which moved `cli.stdout` out of the main loop, also causing panics like the former in interrupt handlers. - The last commit only refactors and extracts shared e2e testing code.
- Loading branch information
Showing
5 changed files
with
98 additions
and
115 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
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