mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user