mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
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) {
|
func TestNoRaceAfterFunc2(t *testing.T) {
|
||||||
var x int
|
var x int
|
||||||
|
_ = x
|
||||||
timer := time.AfterFunc(10, func() {
|
timer := time.AfterFunc(10, func() {
|
||||||
x = 1
|
x = 1
|
||||||
})
|
})
|
||||||
defer timer.Stop()
|
defer timer.Stop()
|
||||||
_ = x
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNoRaceAfterFunc3(t *testing.T) {
|
func TestNoRaceAfterFunc3(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue