File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Tests/LanguageServerProtocolTests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class ConnectionTests: XCTestCase {
26
26
connection. close ( )
27
27
}
28
28
29
- func testEcho( ) {
29
+ func testEcho( ) async throws {
30
30
let client = connection. client
31
31
let expectation = self . expectation ( description: " response received " )
32
32
@@ -37,10 +37,10 @@ class ConnectionTests: XCTestCase {
37
37
expectation. fulfill ( )
38
38
}
39
39
40
- waitForExpectations ( timeout : defaultTimeout )
40
+ try await fulfillmentOfOrThrow ( [ expectation ] )
41
41
}
42
42
43
- func testEchoError( ) {
43
+ func testEchoError( ) async throws {
44
44
let client = connection. client
45
45
let expectation = self . expectation ( description: " response received 1 " )
46
46
let expectation2 = self . expectation ( description: " response received 2 " )
@@ -57,7 +57,7 @@ class ConnectionTests: XCTestCase {
57
57
expectation2. fulfill ( )
58
58
}
59
59
60
- waitForExpectations ( timeout : defaultTimeout )
60
+ try await fulfillmentOfOrThrow ( [ expectation , expectation2 ] )
61
61
}
62
62
63
63
func testEchoNote( ) async throws {
You can’t perform that action at this time.
0 commit comments