Merge pull request #7589 from pierresouchay/fix_unstable_test_TestForwardSignals

Fixed unstable test TestForwardSignals()
This commit is contained in:
Daniel Nephin 2020-04-03 12:43:28 -04:00 committed by GitHub
commit b9cb1e93c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ func TestHelperProcess(t *testing.T) {
limitProcessLifetime(2 * time.Minute)
ch := make(chan os.Signal, 10)
signal.Notify(ch)
signal.Notify(ch, forwardSignals...)
defer signal.Stop(ch)
fmt.Fprintf(os.Stdout, "ready\n")