Skip to content

Commit

Permalink
Update random test settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson committed Mar 1, 2019
1 parent 86435a9 commit d5dbf1e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions immutable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit d5dbf1e

Please sign in to comment.