mirror of
https://github.com/golang/go
synced 2024-11-21 14:04:41 -07:00
sync/atomic: do not run TestStoreLoadSeq for too long (fix windows builder)
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4962057
This commit is contained in:
parent
131fd33437
commit
794489ecf3
@ -885,9 +885,9 @@ func TestHammerStoreLoad(t *testing.T) {
|
||||
|
||||
func TestStoreLoadSeqCst(t *testing.T) {
|
||||
defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(4))
|
||||
N := int32(1e6)
|
||||
N := int32(1e3)
|
||||
if testing.Short() {
|
||||
N = int32(1e5)
|
||||
N = int32(1e2)
|
||||
}
|
||||
c := make(chan bool, 2)
|
||||
X := [2]int32{}
|
||||
|
Loading…
Reference in New Issue
Block a user