Testing: Integration tests for unified-grpc start a local gRPC server (#93201)
This commit is contained in:
1 parent
91c3e3478a
commit
7efadb0a00
5 files changed
+47
-12
No files matched your search
@@ -328,12 +328,12 @@ func TestClientServer(t *testing.T) {
|
||||
dbstore := infraDB.InitTestDB(t)
|
||||
|
||||
cfg := setting.NewCfg()
|
||||
cfg.GRPCServerAddress = "localhost:0"
|
||||
cfg.GRPCServerAddress = "localhost:0" // get a free address
|
||||
cfg.GRPCServerNetwork = "tcp"
|
||||
|
||||
features := featuremgmt.WithFeatures()
|
||||
|
||||
svc, err := sql.ProvideService(cfg, features, dbstore, nil)
|
||||
svc, err := sql.ProvideUnifiedStorageGrpcService(cfg, features, dbstore, nil)
|
||||
require.NoError(t, err)
|
||||
var client resource.ResourceStoreClient
|
||||
|
||||
|
||||
Reference in new issue
Block a user