Testing: Integration tests for unified-grpc start a local gRPC server (#93201)

This commit is contained in:
Ryan McKinley
2024-09-11 11:50:14 +03:00
committed by GitHub
parent 91c3e3478a
commit 7efadb0a00
5 changed files with 47 additions and 12 deletions
@@ -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