Skip to content

Commit 10e6839

Browse files
committed
Make ConnectionTests build in Swift 6 mode
1 parent 4c6f16c commit 10e6839

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/LanguageServerProtocolTests/ConnectionTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ConnectionTests: XCTestCase {
2626
connection.close()
2727
}
2828

29-
func testEcho() {
29+
func testEcho() async throws {
3030
let client = connection.client
3131
let expectation = self.expectation(description: "response received")
3232

@@ -37,10 +37,10 @@ class ConnectionTests: XCTestCase {
3737
expectation.fulfill()
3838
}
3939

40-
waitForExpectations(timeout: defaultTimeout)
40+
try await fulfillmentOfOrThrow([expectation])
4141
}
4242

43-
func testEchoError() {
43+
func testEchoError() async throws {
4444
let client = connection.client
4545
let expectation = self.expectation(description: "response received 1")
4646
let expectation2 = self.expectation(description: "response received 2")
@@ -57,7 +57,7 @@ class ConnectionTests: XCTestCase {
5757
expectation2.fulfill()
5858
}
5959

60-
waitForExpectations(timeout: defaultTimeout)
60+
try await fulfillmentOfOrThrow([expectation, expectation2])
6161
}
6262

6363
func testEchoNote() async throws {

0 commit comments

Comments
 (0)