File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/Ydb.Sdk/test/Ydb.Sdk.Ado.Tests/Session Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,7 @@ public async Task OnNotSuccessStatusCode_WhenStatusCodeIsNotSuccess_UpdateIsBrok
4747 bool isError )
4848 {
4949 SetupSuccessCreateSession ( ) ;
50- var tcsSecondMoveAttachStream = new TaskCompletionSource < bool > ( ) ;
51-
52- _mockAttachStream . SetupSequence ( attachStream => attachStream . MoveNextAsync ( CancellationToken . None ) )
53- . ReturnsAsync ( true )
54- . Returns ( new ValueTask < bool > ( tcsSecondMoveAttachStream . Task ) ) ;
55- _mockAttachStream . SetupSequence ( attachStream => attachStream . Current )
56- . Returns ( new SessionState { Status = StatusIds . Types . StatusCode . Success } ) ;
50+ var tcsSecondMoveAttachStream = SetupAttachStream ( ) ;
5751 var session = _poolingSessionFactory . NewSession ( _poolingSessionSource ) ;
5852 Assert . True ( session . IsBroken ) ;
5953 await session . Open ( CancellationToken . None ) ;
You can’t perform that action at this time.
0 commit comments