File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1451,9 +1451,11 @@ final class BackgroundIndexingTests: XCTestCase {
1451
1451
// Preparation of `Test.swift` should finish instantly because it doesn't type check the function body.
1452
1452
// Type-checking of `slow()` should be slow because the expression has exponential complexity in the type checker.
1453
1453
// We should hit the timeout of 1s. Adding another 2s to escalate a SIGINT (to which swift-frontend doesn't respond)
1454
- // to a SIGKILL mean that the initial indexing should be done in ~3s. 30s should be enough to always finish within
1455
- // this time while also testing that we don't wait for type checking of Test.swift to finish.
1456
- XCTAssert ( Date ( ) . timeIntervalSince ( dateStarted) < 30 )
1454
+ // to a SIGKILL mean that the initial indexing should be done in ~3s. 90s should be enough to always finish within
1455
+ // this time while also testing that we don't wait for type checking of Test.swift to finish, even on slow CI
1456
+ // systems where package loading might take a while and just calling `swift build` to prepare `Test.swift` also has
1457
+ // a delay.
1458
+ XCTAssertLessThan ( Date ( ) . timeIntervalSince ( dateStarted) , 90 )
1457
1459
}
1458
1460
1459
1461
func testRedirectSymlink( ) async throws {
You can’t perform that action at this time.
0 commit comments