mirror of https://github.com/tidwall/tile38.git
wip tests
This commit is contained in:
parent
a664bade48
commit
2e41d49c4b
|
@ -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() {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue