@@ -197,7 +197,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
197
197
preInitialization? ( self )
198
198
if initialize {
199
199
let capabilities = capabilities
200
- try await withTimeout ( . seconds ( defaultTimeout ) ) {
200
+ try await withTimeout ( defaultTimeoutDuration ) {
201
201
_ = try await self . send (
202
202
InitializeRequest (
203
203
processId: nil ,
@@ -270,7 +270,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
270
270
///
271
271
/// - Note: This also returns any notifications sent before the call to
272
272
/// `nextNotification`.
273
- package func nextNotification( timeout: Duration = . seconds ( defaultTimeout ) ) async throws -> any NotificationType {
273
+ package func nextNotification( timeout: Duration = defaultTimeoutDuration ) async throws -> any NotificationType {
274
274
return try await notifications. next ( timeout: timeout)
275
275
}
276
276
@@ -279,7 +279,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
279
279
/// If the next notification is not a `PublishDiagnosticsNotification`, this
280
280
/// methods throws.
281
281
package func nextDiagnosticsNotification(
282
- timeout: Duration = . seconds ( defaultTimeout )
282
+ timeout: Duration = defaultTimeoutDuration
283
283
) async throws -> PublishDiagnosticsNotification {
284
284
guard !usePullDiagnostics else {
285
285
struct PushDiagnosticsError : Error , CustomStringConvertible {
@@ -295,7 +295,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
295
295
package func nextNotification< ExpectedNotificationType: NotificationType > (
296
296
ofType: ExpectedNotificationType . Type ,
297
297
satisfying predicate: ( ExpectedNotificationType ) throws -> Bool = { _ in true } ,
298
- timeout: Duration = . seconds ( defaultTimeout )
298
+ timeout: Duration = defaultTimeoutDuration
299
299
) async throws -> ExpectedNotificationType {
300
300
while true {
301
301
let nextNotification = try await nextNotification ( timeout: timeout)
0 commit comments