From a49d1ddf157782b38141f294c58b4d36ed4b5092 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Thu, 8 Sep 2016 16:27:28 -0700 Subject: [PATCH] test with very large keys --- tests/tests_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/tests_test.go b/tests/tests_test.go index 55f8396f..3a219c5c 100644 --- a/tests/tests_test.go +++ b/tests/tests_test.go @@ -15,6 +15,7 @@ import ( "testing" "time" + "github.com/tidwall/log" "github.com/tidwall/tile38/controller" ) @@ -69,7 +70,7 @@ func TestServer(t *testing.T) { var done = make(chan bool, 2) var ignoreErrs bool go func() { - // log.Default = log.New(ioutil.Discard, nil) + log.Default = log.New(ioutil.Discard, nil) err := controller.ListenAndServeEx("localhost", port, dir, &ln) if err != nil { if !ignoreErrs { @@ -188,13 +189,13 @@ func testSet(t *testing.T, jsonSize, keyIDSize, frag int) { } } func SubTestSet100KB(t *testing.T) { - testSet(t, 100*1024, 100, 1024) + testSet(t, 100*1024, 5000, 1024) } func SubTestSet1MB(t *testing.T) { - testSet(t, 1024*1024, 100, 1024) + testSet(t, 1024*1024, 5000, 1024) } func SubTestSet10MB(t *testing.T) { - testSet(t, 10*1024*1024, 100, 1024) + testSet(t, 10*1024*1024, 5000, 1024) } func buildCommand(arg ...string) []byte { var b []byte