For #14119
Change-Id: I2a9ae43da228cf5c3e38d1f0d1b0768145b6548f
Reviewed-on: https://go-review.googlesource.com/c/go/+/267998
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Ian Lance Taylor <iant@golang.org>
func TestNoRaceAfterFunc2(t *testing.T) {
var x int
+ _ = x
timer := time.AfterFunc(10, func() {
x = 1
})
defer timer.Stop()
- _ = x
}
func TestNoRaceAfterFunc3(t *testing.T) {