File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1426,9 +1426,13 @@ final class LocalSwiftTests: XCTestCase {
1426
1426
}
1427
1427
1428
1428
func testSourceKitdTimeout( ) async throws {
1429
- var options = SourceKitLSPOptions . testDefault ( )
1430
- options. sourcekitdRequestTimeout = 1 /* second */
1429
+ try SkipUnless . longTestsEnabled ( )
1431
1430
1431
+ var options = SourceKitLSPOptions . testDefault ( )
1432
+ // This is how long we wait until implicitly cancelling the first diagnostics request.
1433
+ // It needs to be long enough so we can compute diagnostics for the second requests.
1434
+ // 1s is not sufficient on Windows for that.
1435
+ options. sourcekitdRequestTimeout = 3 /* seconds */
1432
1436
let testClient = try await TestSourceKitLSPClient ( options: options)
1433
1437
let uri = DocumentURI ( for: . swift)
1434
1438
You can’t perform that action at this time.
0 commit comments