start with cockroach test server

This commit is contained in:
adlerhurst 2020-09-30 19:04:52 +02:00
parent 34783ba763
commit 169b1787df

View File

@ -0,0 +1,17 @@
package repository
import (
"testing"
"github.com/cockroachdb/cockroach/pkg/base"
"github.com/cockroachdb/cockroach/pkg/server"
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
)
func TestBlub(t *testing.T) {
s, db, kvDB := serverutils.StartServer(t, base.TestServerArgs{})
defer s.Stopper().Stop()
// If really needed, in tests that can depend on server, downcast to
// server.TestServer:
ts := s.(*server.TestServer)
}