forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky test test_stats (elastic#17034) (elastic#17039)
Tests on stats API can finish even before the mocked beat has completed its initialization, so it can receive the signal to stop before it can handle signals, terminating with an status code -15 (killed by SIGTERM), instead of the expected status code 0. Check that the beat has been completely started before trying to kill it, and move common code to setUp/tearDown. Fix also an incorrect error message. (cherry picked from commit 825cf05)
- Loading branch information
Showing
2 changed files
with
13 additions
and
26 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