1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:20:22 -07:00

runtime/race: remove race from TestNoRaceAfterFunc2

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>
This commit is contained in:
Mark Pulford 2020-11-06 18:37:01 +11:00 committed by Ian Lance Taylor
parent 1c7650aa93
commit 81322b9191

View File

@ -126,11 +126,11 @@ func TestNoRaceAfterFunc1(t *testing.T) {
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) {