-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Stop and finalize build on exec termination (#332)
* Fix incorrect run check This property is a function and not a getter. Without invoking it as a function, it's value is always truthy. * Stop the agent service when the exec process is terminated * Do not handle stopping exec multiple times When the process was terminated, all of the signal handlers were triggered causing multiple logs to be outputted. Skipping stopping the agent once another event has stopped it causes subsequent events to skip straight to exiting, and never finalizes builds. Exiting is tracked so that if it is already being handled, there is no need to handle exiting again. * Correct test for PERCY_ENABLED The previous test tested that PERCY_ENABLED _did not_ work. That is, it tested that a warning was still thrown even though it was disabled. That test has been corrected to assert that _nothing_ is thrown when disabled. * Fix comment typo
- Loading branch information
Wil Wilsman
authored
Aug 22, 2019
1 parent
6ee280b
commit 2fd90b9
Showing
3 changed files
with
26 additions
and
18 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