]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] testing/internal/testdeps: use signal.NotifyContext
authorJay Conrod <jayconrod@google.com>
Tue, 9 Feb 2021 15:30:02 +0000 (10:30 -0500)
committerJay Conrod <jayconrod@google.com>
Wed, 10 Feb 2021 18:21:02 +0000 (18:21 +0000)
commitb9c88eaab915874bc004f579940b10fe48bba36b
treee1cf4c7b9700c794a45fbd057712a62da11b71f1
parent9b967d12a9f1a13c79104b834a17c4356585cc7a
[dev.fuzz] testing/internal/testdeps: use signal.NotifyContext

In RunFuzzWorker and CoordinateFuzzing, use signal.NotifyContext
(new in 1.16) to cancel the context in response to SIGINT. This is
shorter and more correct than what we were doing before.

Change-Id: Id7e9a58e9dd992dffb86e4e0f2e3efd117d03c47
Reviewed-on: https://go-review.googlesource.com/c/go/+/290691
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/testing/internal/testdeps/deps.go