Ensure all test client instances are cleaned up (#3)

This commit is contained in:
Stephen Toub 2025-03-19 17:27:49 -04:00 • committed by GitHub
commit 555933a06e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,8 +63,6 @@ public class SseServerIntegrationTestFixture : IDisposable
{
try
{
var client = McpClientFactory.CreateAsync(DefaultConfig, DefaultOptions, loggerFactory: LoggerFactory).GetAwaiter().GetResult();
client.DisposeAsync().AsTask().Wait();
LoggerFactory?.Dispose();
}
finally