File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tests/ModelContextProtocol.Tests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ public class SseServerIntegrationTestFixture : IAsyncDisposable
1111{
1212 private readonly Task _serverTask ;
1313 private readonly CancellationTokenSource _stopCts = new ( ) ;
14- private DelegatingTestOutputHelper _delegatingTestOutputHelper = new ( ) ;
1514
16- private ILoggerFactory _redirectingLoggerFactory ;
15+ private readonly DelegatingTestOutputHelper _delegatingTestOutputHelper = new ( ) ;
16+ private readonly ILoggerFactory _redirectingLoggerFactory ;
1717
1818 public McpClientOptions DefaultOptions { get ; }
1919 public McpServerConfig DefaultConfig { get ; }
@@ -50,7 +50,7 @@ public void Initialize(ITestOutputHelper output)
5050
5151 public async ValueTask DisposeAsync ( )
5252 {
53- _redirectingLoggerFactory . Dispose ( ) ;
53+ _delegatingTestOutputHelper . CurrentTestOutputHelper = null ;
5454 _stopCts . Cancel ( ) ;
5555 try
5656 {
@@ -59,6 +59,7 @@ public async ValueTask DisposeAsync()
5959 catch ( OperationCanceledException )
6060 {
6161 }
62+ _redirectingLoggerFactory . Dispose ( ) ;
6263 _stopCts . Dispose ( ) ;
6364 }
6465
You can’t perform that action at this time.
0 commit comments