@@ -233,7 +233,7 @@ public async Task YdbDataReader_WhenCancelTokenIsCanceled_ThrowYdbException()
233233 Assert . False ( ydbDataReader . IsClosed ) ;
234234 Assert . Equal ( 1 , ydbDataReader . GetValue ( 0 ) ) ;
235235 Assert . Equal ( ConnectionState . Open , connection . State ) ;
236- Assert . Equal ( StatusCode . Cancelled ,
236+ Assert . Equal ( StatusCode . ClientTransportTimeout ,
237237 ( await Assert . ThrowsAsync < YdbException > ( async ( ) => await ydbDataReader . NextResultAsync ( cts . Token ) ) ) . Code ) ;
238238 Assert . True ( ydbDataReader . IsClosed ) ;
239239 Assert . Equal ( ConnectionState . Broken , connection . State ) ;
@@ -249,7 +249,7 @@ public async Task YdbDataReader_WhenCancelTokenIsCanceled_ThrowYdbException()
249249 Assert . Equal ( 1 , ydbDataReader . GetValue ( 0 ) ) ;
250250 Assert . False ( ydbDataReader . IsClosed ) ;
251251
252- Assert . Equal ( StatusCode . Cancelled ,
252+ Assert . Equal ( StatusCode . ClientTransportTimeout ,
253253 ( await Assert . ThrowsAsync < YdbException > ( async ( ) => await ydbDataReader . NextResultAsync ( cts . Token ) ) ) . Code ) ;
254254 Assert . True ( ydbDataReader . IsClosed ) ;
255255 Assert . Equal ( ConnectionState . Broken , connection . State ) ;
@@ -263,7 +263,7 @@ public async Task ExecuteMethods_WhenCancelTokenIsCanceled_ConnectionIsBroken()
263263 using var cts = new CancellationTokenSource ( ) ;
264264 cts . Cancel ( ) ;
265265
266- Assert . Equal ( StatusCode . Cancelled ,
266+ Assert . Equal ( StatusCode . ClientTransportTimeout ,
267267 ( await Assert . ThrowsAsync < YdbException > ( async ( ) => await command . ExecuteReaderAsync ( cts . Token ) ) ) . Code ) ;
268268 Assert . Equal ( ConnectionState . Broken , connection . State ) ;
269269 // ReSharper disable once MethodSupportsCancellation
0 commit comments