Commit 794489ec authored by Alex Brainman's avatar Alex Brainman

sync/atomic: do not run TestStoreLoadSeq for too long (fix windows builder)

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4962057
parent 131fd334
...@@ -885,9 +885,9 @@ func TestHammerStoreLoad(t *testing.T) { ...@@ -885,9 +885,9 @@ func TestHammerStoreLoad(t *testing.T) {
func TestStoreLoadSeqCst(t *testing.T) { func TestStoreLoadSeqCst(t *testing.T) {
defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(4)) defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(4))
N := int32(1e6) N := int32(1e3)
if testing.Short() { if testing.Short() {
N = int32(1e5) N = int32(1e2)
} }
c := make(chan bool, 2) c := make(chan bool, 2)
X := [2]int32{} X := [2]int32{}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment