Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public async Task TaskTool_CancellationToken_GetTaskShowsWorkingBeforeCancel()

// Cleanup
await client.CancelTaskAsync(taskId, ct);
await _toolCancellationFired.Task.WaitAsync(TestConstants.DefaultTimeout, ct);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other tests wait for this condition to assert that a client cancel makes its way into the server tool call and the cancellation is actually observed. This test is not validating that so it's not needed.

The correct cleanup should actually be handled by the server during disposal. This is a separate issue tracked in #1707.

}
}

Expand Down