File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ import XCTest
18
18
19
19
private typealias Token = SyntaxHighlightingToken
20
20
21
+ /// The number of seconds that we wait for a semantic token refresh.
22
+ private let semanticRefreshTimeout : TimeInterval = 60
23
+
21
24
final class SemanticTokensTests : XCTestCase {
22
25
/// Connection and lifetime management for the service.
23
26
private var connection : TestSourceKitServer ! = nil
@@ -103,7 +106,7 @@ final class SemanticTokensTests: XCTestCase {
103
106
) ) )
104
107
version += 1
105
108
106
- wait ( for: [ registerCapabilityExpectation, refreshExpectation] , timeout: 15 )
109
+ wait ( for: [ registerCapabilityExpectation, refreshExpectation] , timeout: semanticRefreshTimeout )
107
110
}
108
111
109
112
private func editDocument( changes: [ TextDocumentContentChangeEvent ] , expectRefresh: Bool = true ) {
@@ -125,7 +128,7 @@ final class SemanticTokensTests: XCTestCase {
125
128
) )
126
129
version += 1
127
130
128
- wait ( for: expectations, timeout: 15 )
131
+ wait ( for: expectations, timeout: semanticRefreshTimeout )
129
132
}
130
133
131
134
private func editDocument( range: Range < Position > , text: String , expectRefresh: Bool = true ) {
You can’t perform that action at this time.
0 commit comments