11using System ;
2+ using System . IO . Pipelines ;
23using System . Threading . Tasks ;
34using FluentAssertions ;
45using MediatR ;
@@ -15,7 +16,10 @@ namespace Lsp.Tests.Integration
1516{
1617 public class ConnectionAndDisconnectionTests : LanguageProtocolTestBase
1718 {
18- public ConnectionAndDisconnectionTests ( ITestOutputHelper outputHelper ) : base ( new JsonRpcTestOptions ( ) . ConfigureForXUnit ( outputHelper ) . WithTestTimeout ( TimeSpan . FromSeconds ( 10 ) ) )
19+ public ConnectionAndDisconnectionTests ( ITestOutputHelper outputHelper ) : base ( new JsonRpcTestOptions ( )
20+ . ConfigureForXUnit ( outputHelper )
21+ . WithTestTimeout ( TimeSpan . FromSeconds ( 20 ) )
22+ )
1923 {
2024 }
2125
@@ -28,7 +32,7 @@ public async Task Server_Should_Stay_Alive_When_Requests_Throw_An_Exception()
2832 result . Should ( ) . BeTrue ( ) ;
2933
3034 Func < Task > a = ( ) => client . SendRequest ( "throw" ) . ReturningVoid ( CancellationToken ) ;
31- a . Should ( ) . Throw < InternalErrorException > ( ) ;
35+ await a . Should ( ) . ThrowAsync < InternalErrorException > ( ) ;
3236
3337 result = await client . SendRequest ( "keepalive" ) . Returning < bool > ( CancellationToken ) ;
3438 result . Should ( ) . BeTrue ( ) ;
@@ -43,7 +47,7 @@ public async Task Client_Should_Stay_Alive_When_Requests_Throw_An_Exception()
4347 result . Should ( ) . BeTrue ( ) ;
4448
4549 Func < Task > a = ( ) => server . SendRequest ( "throw" ) . ReturningVoid ( CancellationToken ) ;
46- a . Should ( ) . Throw < InternalErrorException > ( ) ;
50+ await a . Should ( ) . ThrowAsync < InternalErrorException > ( ) ;
4751
4852 result = await server . SendRequest ( "keepalive" ) . Returning < bool > ( CancellationToken ) ;
4953 result . Should ( ) . BeTrue ( ) ;
0 commit comments