mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-05 10:28:52 +00:00
start with cockroach test server
This commit is contained in:
@@ -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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user