]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: increase attempt count for map iteration order test.
authorDavid Symonds <dsymonds@golang.org>
Thu, 2 Jan 2014 23:41:56 +0000 (10:41 +1100)
committerDavid Symonds <dsymonds@golang.org>
Thu, 2 Jan 2014 23:41:56 +0000 (10:41 +1100)
Some builders broke on this test; I'm guessing that was because
this test didn't try hard enough to find a different iteration order.

Update #6719

R=dave
CC=golang-codereviews
https://golang.org/cl/47300043

src/pkg/runtime/map_test.go

index f57d1f57c1aefc9bf3cd47b45249937421447071..b8586483fdf8e38301663de065d66978cfed79e1 100644 (file)
@@ -428,7 +428,7 @@ func TestMapIterOrder(t *testing.T) {
                }
                first := ord()
                ok := false
-               for try := 0; try < 5; try++ {
+               for try := 0; try < 100; try++ {
                        if !reflect.DeepEqual(first, ord()) {
                                ok = true
                                break