From 1e4f86e48550c1d04a3778948613f38a078e2801 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Mon, 15 Sep 2014 12:30:57 -0700 Subject: [PATCH] runtime: try harder to get different iteration orders. Fixes #8736. LGTM=iant, josharian R=golang-codereviews, iant, josharian CC=golang-codereviews https://golang.org/cl/144910044 --- src/runtime/map_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/runtime/map_test.go b/src/runtime/map_test.go index 9b76a5bbf2..92da2d8209 100644 --- a/src/runtime/map_test.go +++ b/src/runtime/map_test.go @@ -462,8 +462,9 @@ NextRound: first = append(first, i) } - // 80 chances to get a different iteration order. - for n := 0; n < 80; n++ { + // 800 chances to get a different iteration order. + // See bug 8736 for why we need so many tries. + for n := 0; n < 800; n++ { idx := 0 for i := range m { if i != first[idx] { -- 2.50.0