Browse Source

Merge pull request #7589 from pierresouchay/fix_unstable_test_TestForwardSignals

Fixed unstable test TestForwardSignals()
pull/7594/head
Daniel Nephin 5 years ago committed by GitHub
parent
commit
b9cb1e93c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      agent/util_test.go

2
agent/util_test.go

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

Loading…
Cancel
Save