Add client completion notification and details (#1368)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
4af2596019
commit
b965a7eca6
1 changed files with 691 additions and 31 deletions
|
|
@ -794,4 +794,17 @@ public class McpClientTests : ClientServerTestBase
|
|||
Assert.NotNull(response);
|
||||
Assert.NotNull(response.Result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Completion_GracefulDisposal_CompletesWithNoException()
|
||||
{
|
||||
var client = await CreateMcpClientForServer();
|
||||
Assert.False(client.Completion.IsCompleted);
|
||||
|
||||
await client.DisposeAsync();
|
||||
Assert.True(client.Completion.IsCompleted);
|
||||
|
||||
var details = await client.Completion;
|
||||
Assert.Null(details.Exception);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue