@@ -123,7 +123,7 @@ func TestConnection(t *testing.T) {
123123 }()
124124 t .Run ("discovery.WhoAmI" , func (t * testing.T ) {
125125 if err = retry .Retry (ctx , func (ctx context.Context ) (err error ) {
126- discoveryClient := Ydb_Discovery_V1 .NewDiscoveryServiceClient (db .(grpc. ClientConnInterface ))
126+ discoveryClient := Ydb_Discovery_V1 .NewDiscoveryServiceClient (ydb . GRPCConn ( db ))
127127 response , err := discoveryClient .WhoAmI (
128128 ctx ,
129129 & Ydb_Discovery.WhoAmIRequest {IncludeGroups : true },
@@ -143,7 +143,7 @@ func TestConnection(t *testing.T) {
143143 })
144144 t .Run ("scripting.ExecuteYql" , func (t * testing.T ) {
145145 if err = retry .Retry (ctx , func (ctx context.Context ) (err error ) {
146- scriptingClient := Ydb_Scripting_V1 .NewScriptingServiceClient (db .(grpc. ClientConnInterface ))
146+ scriptingClient := Ydb_Scripting_V1 .NewScriptingServiceClient (ydb . GRPCConn ( db ))
147147 response , err := scriptingClient .ExecuteYql (
148148 ctx ,
149149 & Ydb_Scripting.ExecuteYqlRequest {Script : "SELECT 1+100 AS sum" },
@@ -194,7 +194,7 @@ func TestConnection(t *testing.T) {
194194 })
195195 t .Run ("scripting.StreamExecuteYql" , func (t * testing.T ) {
196196 if err = retry .Retry (ctx , func (ctx context.Context ) (err error ) {
197- scriptingClient := Ydb_Scripting_V1 .NewScriptingServiceClient (db .(grpc. ClientConnInterface ))
197+ scriptingClient := Ydb_Scripting_V1 .NewScriptingServiceClient (ydb . GRPCConn ( db ))
198198 client , err := scriptingClient .StreamExecuteYql (
199199 ctx ,
200200 & Ydb_Scripting.ExecuteYqlRequest {Script : "SELECT 1+100 AS sum" },
@@ -248,7 +248,7 @@ func TestConnection(t *testing.T) {
248248 _ = childDB .Close (ctx )
249249 }()
250250 if err = retry .Retry (ctx , func (ctx context.Context ) (err error ) {
251- scriptingClient := Ydb_Scripting_V1 .NewScriptingServiceClient (childDB .(grpc. ClientConnInterface ))
251+ scriptingClient := Ydb_Scripting_V1 .NewScriptingServiceClient (ydb . GRPCConn ( childDB ))
252252 client , err := scriptingClient .StreamExecuteYql (
253253 ctx ,
254254 & Ydb_Scripting.ExecuteYqlRequest {Script : "SELECT 1+100 AS sum" },
@@ -291,7 +291,7 @@ func TestConnection(t *testing.T) {
291291 })
292292 t .Run ("export.ExportToS3" , func (t * testing.T ) {
293293 if err = retry .Retry (ctx , func (ctx context.Context ) (err error ) {
294- exportClient := Ydb_Export_V1 .NewExportServiceClient (db .(grpc. ClientConnInterface ))
294+ exportClient := Ydb_Export_V1 .NewExportServiceClient (ydb . GRPCConn ( db ))
295295 response , err := exportClient .ExportToS3 (
296296 ctx ,
297297 & Ydb_Export.ExportToS3Request {
0 commit comments