Skip to content

Commit 6a8ea4c

Browse files
authored
Merge pull request #2105 from ahoppen/test-timeout-cancellation
Fix issue that caused request cancellation after a timeout in tests to not work
2 parents af27677 + c045182 commit 6a8ea4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SKTestSupport/TestSourceKitLSPClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
261261
.failure(ResponseError.unknown("\(R.method) request timed out after \(defaultTimeoutDuration)"))
262262
)
263263
}
264-
await server.handle(notification: CancelRequestNotification(id: requestID))
264+
server.handle(CancelRequestNotification(id: requestID))
265265
}
266266
server.handle(request, id: requestID) { result in
267267
if replyOutstanding.takeValue() ?? false {

0 commit comments

Comments
 (0)