]> Cypherpunks repositories - gostls13.git/commitdiff
sync/atomic: do not run TestStoreLoadSeq for too long (fix windows builder)
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 8 Sep 2011 03:31:40 +0000 (13:31 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 8 Sep 2011 03:31:40 +0000 (13:31 +1000)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4962057

src/pkg/sync/atomic/atomic_test.go

index d3fc1387c45d0fbfb3fa11ae5cb68df0029523c5..ea224375c1ac15fc5e909efc36e23cd1ce773db1 100644 (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{}