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:
parent
1c7650aa93
commit
81322b9191
2
src/runtime/race/testdata/sync_test.go
vendored
2
src/runtime/race/testdata/sync_test.go
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user