1
0
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:
Alex Brainman 2011-09-08 13:31:40 +10:00
parent 131fd33437
commit 794489ecf3

View File

@ -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{}