aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2019-03-01 14:43:53 -0700
committerBen Johnson <benbjohnson@yahoo.com>2019-03-01 14:43:53 -0700
commitd5dbf1e8feea4fc4047179fece3681bc51299011 (patch)
tree5bbcc996fd83598454f2a613c07eb8f744239426
parentAdd CircleCI support. (diff)
downloadpds-d5dbf1e8feea4fc4047179fece3681bc51299011.tar.gz
pds-d5dbf1e8feea4fc4047179fece3681bc51299011.tar.xz
Update random test settings.
-rw-r--r--immutable_test.go8
1 files 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))