File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Tests/LanguageServerProtocolJSONRPCTests Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import XCTest
17
17
18
18
import class Foundation. Pipe
19
19
20
- public final class TestJSONRPCConnection {
20
+ public final class TestJSONRPCConnection : Sendable {
21
21
public let clientToServer : Pipe = Pipe ( )
22
22
public let serverToClient : Pipe = Pipe ( )
23
23
@@ -151,7 +151,7 @@ public actor TestClient: MessageHandler {
151
151
/// Send a request to the LSP server and (asynchronously) receive a reply.
152
152
public nonisolated func send< Request: RequestType > (
153
153
_ request: Request ,
154
- reply: @escaping ( LSPResult < Request . Response > ) -> Void
154
+ reply: @Sendable @ escaping ( LSPResult < Request . Response > ) -> Void
155
155
) -> RequestID {
156
156
return connectionToServer. send ( request, reply: reply)
157
157
}
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ class ConnectionPerfTests: PerfTestCase {
32
32
let expectation = self . expectation ( description: " response received " )
33
33
self . startMeasuring ( )
34
34
_ = client. send ( EchoRequest ( string: " hello! " ) ) { _ in
35
- self . stopMeasuring ( )
36
35
expectation. fulfill ( )
37
36
}
38
37
39
38
wait ( for: [ expectation] , timeout: defaultTimeout)
39
+ self . stopMeasuring ( )
40
40
}
41
41
}
42
42
You can’t perform that action at this time.
0 commit comments