Merge pull request #2105 from ahoppen/test-timeout-cancellation

Fix issue that caused request cancellation after a timeout in tests to not work
This commit is contained in:
Alex Hoppen
2025-04-09 15:23:28 -07:00
committed by GitHub

View File

@@ -261,7 +261,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
.failure(ResponseError.unknown("\(R.method) request timed out after \(defaultTimeoutDuration)"))
)
}
await server.handle(notification: CancelRequestNotification(id: requestID))
server.handle(CancelRequestNotification(id: requestID))
}
server.handle(request, id: requestID) { result in
if replyOutstanding.takeValue() ?? false {