Ensure all test client instances are cleaned up (#3)
This commit is contained in:
parent
fd358b437d
commit
555933a06e
1 changed files with 10 additions and 12 deletions
|
|
@ -65,7 +65,7 @@ public class McpClientFactoryTests
|
|||
};
|
||||
|
||||
// Act
|
||||
var client = await McpClientFactory.CreateAsync(
|
||||
await using var client = await McpClientFactory.CreateAsync(
|
||||
serverConfig,
|
||||
_defaultOptions,
|
||||
(_, __) => new NopTransport());
|
||||
|
|
@ -88,7 +88,7 @@ public class McpClientFactoryTests
|
|||
};
|
||||
|
||||
// Act
|
||||
var client = await McpClientFactory.CreateAsync(
|
||||
await using var client = await McpClientFactory.CreateAsync(
|
||||
serverConfig,
|
||||
_defaultOptions,
|
||||
(_, __) => new NopTransport());
|
||||
|
|
@ -111,7 +111,7 @@ public class McpClientFactoryTests
|
|||
};
|
||||
|
||||
// Act
|
||||
var client = await McpClientFactory.CreateAsync(
|
||||
await using var client = await McpClientFactory.CreateAsync(
|
||||
serverConfig,
|
||||
_defaultOptions,
|
||||
(_, __) => new NopTransport());
|
||||
|
|
@ -141,7 +141,7 @@ public class McpClientFactoryTests
|
|||
};
|
||||
|
||||
// Act
|
||||
var client = await McpClientFactory.CreateAsync(
|
||||
await using var client = await McpClientFactory.CreateAsync(
|
||||
serverConfig,
|
||||
_defaultOptions,
|
||||
(_, __) => new NopTransport());
|
||||
|
|
|
|||
Loading…
Reference in a new issue