From 9293fd8a3b4298bab12475ff46f793a6d4055f0e Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Wed, 11 Jan 2023 11:31:42 -0500 Subject: [PATCH] Fix MockServer --- Package.resolved | 4 ++-- Tests/LanguageServerProtocolTests/ServerTests.swift | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Package.resolved b/Package.resolved index 4c115d0..50b6669 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/ChimeHQ/JSONRPC", "state": { "branch": null, - "revision": "e0a30db87e70d31c821f99b9699c0bef61748aac", - "version": "0.6.1" + "revision": "afc20d00e38674774f84edc325424a32ae3b9e01", + "version": "0.7.0" } } ] diff --git a/Tests/LanguageServerProtocolTests/ServerTests.swift b/Tests/LanguageServerProtocolTests/ServerTests.swift index bbe0dc0..ff93d16 100644 --- a/Tests/LanguageServerProtocolTests/ServerTests.swift +++ b/Tests/LanguageServerProtocolTests/ServerTests.swift @@ -3,11 +3,12 @@ import JSONRPC @testable import LanguageServerProtocol class MockServer: Server { - var requestHandler: RequestHandler? - var notificationHandler: NotificationHandler? - var responseData: Data? + func setHandlers(_ handlers: LanguageServerProtocol.ServerHandlers, completionHandler: @escaping (ServerError?) -> Void) { + completionHandler(nil) + } + func sendNotification(_ notif: ClientNotification, completionHandler: @escaping (ServerError?) -> Void) { completionHandler(.missingExpectedParameter) }