From d5dbf1e8feea4fc4047179fece3681bc51299011 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 1 Mar 2019 14:43:53 -0700 Subject: Update random test settings. --- immutable_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/immutable_test.go b/immutable_test.go index 05a96e6..460392c 100644 --- a/immutable_test.go +++ b/immutable_test.go @@ -197,10 +197,6 @@ func TestList(t *testing.T) { default: // append l.Append(rand.Intn(10000)) } - - if err := l.Validate(); err != nil { - t.Fatal(err) - } } if err := l.Validate(); err != nil { t.Fatal(err) @@ -900,7 +896,7 @@ func TestMap_Set(t *testing.T) { RunRandom(t, "Random", func(t *testing.T, rand *rand.Rand) { m := NewTestMap() - for i := 0; i < 100000; i++ { + for i := 0; i < 10000; i++ { switch rand.Intn(2) { case 1: // overwrite m.Set(m.ExistingKey(rand), rand.Intn(10000)) @@ -986,7 +982,7 @@ func TestMap_Delete(t *testing.T) { RunRandom(t, "Random", func(t *testing.T, rand *rand.Rand) { m := NewTestMap() - for i := 0; i < 100000; i++ { + for i := 0; i < 10000; i++ { switch rand.Intn(8) { case 0: // overwrite m.Set(m.ExistingKey(rand), rand.Intn(10000)) -- cgit v1.2.3