Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trying to test the receiving of signals is subject to race conditions that cause different test failures in different environments but that aren't going to cause problems in realistic production environments
where signals we're interested in are either idempotent (SIGTERM) or can be expected to be received one-at-a-time (SIGUSR1). Integration tests verify our behavior is correct.
This PR factors out the tests that cover the signal handling code so that we can test their logic without dealing with coercing the async signals into a synchronous test model.
This code, before rebase, passed the TravisCI build here: https://travis-ci.org/tgross/containerbuddy/builds/95072309
This code, after rebase, passed the Travis CI build here: https://travis-ci.org/tgross/containerbuddy/builds/95073115
(And of course the PR build has now passed as well)
cc @justenwalker @misterbisson