wip tests

This commit is contained in:
Josh Baker 2016-12-04 08:52:38 -07:00
parent a664bade48
commit 2e41d49c4b
2 changed files with 2 additions and 8 deletions

View File

@ -14,6 +14,7 @@ import (
"github.com/garyburd/redigo/redis"
"github.com/tidwall/tile38/controller"
tlog "github.com/tidwall/tile38/controller/log"
"github.com/tidwall/tile38/core"
)
var errTimeout = errors.New("timeout")
@ -46,6 +47,7 @@ func mockOpenServer() (*mockServer, error) {
if os.Getenv("PRINTLOG") == "1" {
logOutput = os.Stderr
}
core.DevMode = true
s := &mockServer{port: port}
tlog.Default = tlog.New(logOutput, nil)
go func() {

View File

@ -40,14 +40,6 @@ func TestAll(t *testing.T) {
}
defer mc.Close()
runSubTest(t, "keys", mc, subTestKeys)
/*
runSubTest(t, "keys", mc, subTestKeys)
runSubTest(t, "json", mc, subTestJSON)
runSubTest(t, "indexes", mc, subTestIndexes)
runSubTest(t, "transactions", mc, subTestTransactions)
runSubTest(t, "scripts", mc, subTestScripts)
runSubTest(t, "raft", mc, subTestRaft)
*/
}
func runSubTest(t *testing.T, name string, mc *mockServer, test func(t *testing.T, mc *mockServer)) {