Skip to content

Commit 31ac0bc

Browse files
committed
Bump semantic token refresh timeout to 60s
1 parent 1e65730 commit 31ac0bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tests/SourceKitLSPTests/SemanticTokensTests.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import XCTest
1818

1919
private typealias Token = SyntaxHighlightingToken
2020

21+
/// The number of seconds that we wait for a semantic token refresh.
22+
private let semanticRefreshTimeout: TimeInterval = 60
23+
2124
final class SemanticTokensTests: XCTestCase {
2225
/// Connection and lifetime management for the service.
2326
private var connection: TestSourceKitServer! = nil
@@ -103,7 +106,7 @@ final class SemanticTokensTests: XCTestCase {
103106
)))
104107
version += 1
105108

106-
wait(for: [registerCapabilityExpectation, refreshExpectation], timeout: 15)
109+
wait(for: [registerCapabilityExpectation, refreshExpectation], timeout: semanticRefreshTimeout)
107110
}
108111

109112
private func editDocument(changes: [TextDocumentContentChangeEvent], expectRefresh: Bool = true) {
@@ -125,7 +128,7 @@ final class SemanticTokensTests: XCTestCase {
125128
))
126129
version += 1
127130

128-
wait(for: expectations, timeout: 15)
131+
wait(for: expectations, timeout: semanticRefreshTimeout)
129132
}
130133

131134
private func editDocument(range: Range<Position>, text: String, expectRefresh: Bool = true) {

0 commit comments

Comments
 (0)