Commit 61ccd0a
committed
Fix race in test
==================
WARNING: DATA RACE
Write at 0x00c000394018 by goroutine 10:
github.com/fsnotify/fsevents.TestIssue48()
/Users/runner/work/fsevents/fsevents/fsevents_test.go:137 +0xcc6
testing.tRunner()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1259 +0x22f
testing.(*T).Run·dwrap·21()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1306 +0x47
Previous read at 0x00c000394018 by goroutine 12:
github.com/fsnotify/fsevents.TestIssue48.func1()
/Users/runner/work/fsevents/fsevents/fsevents_test.go:112 +0x1d2
Goroutine 10 (running) created at:
testing.(*T).Run()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1306 +0x726
testing.runTests.func1()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1598 +0x99
testing.tRunner()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1259 +0x22f
testing.runTests()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1596 +0x7ca
testing.(*M).Run()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1504 +0x9d1
main.main()
_testmain.go:55 +0x22b
Goroutine 12 (finished) created at:
github.com/fsnotify/fsevents.TestIssue48()
/Users/runner/work/fsevents/fsevents/fsevents_test.go:107 +0x815
testing.tRunner()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1259 +0x22f
testing.(*T).Run·dwrap·21()
/Users/runner/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1306 +0x47
==================1 parent f830802 commit 61ccd0a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments