Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential race condition in testing
The It("podman wait to pause|unpause condition"... test is flaking every so often when a messages is sent in the second function to a channel. It is my believe that in between the time the first function sends a message to the channel and before it closes the channel the second errChan=make() has happened. This would mean that the fist function closes the second errChan, and then when the second function sends a message to the second errChan, it fails and blows up with the error you are seeing. By creating a different variable for the second channel, we eliminate the race. Fixes: containers#6518 Signed-off-by: Daniel J Walsh <[email protected]>
- Loading branch information