@@ -197,7 +197,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
197197 preInitialization? ( self )
198198 if initialize {
199199 let capabilities = capabilities
200- try await withTimeout ( . seconds ( defaultTimeout ) ) {
200+ try await withTimeout ( defaultTimeoutDuration ) {
201201 _ = try await self . send (
202202 InitializeRequest (
203203 processId: nil ,
@@ -270,7 +270,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
270270 ///
271271 /// - Note: This also returns any notifications sent before the call to
272272 /// `nextNotification`.
273- package func nextNotification( timeout: Duration = . seconds ( defaultTimeout ) ) async throws -> any NotificationType {
273+ package func nextNotification( timeout: Duration = defaultTimeoutDuration ) async throws -> any NotificationType {
274274 return try await notifications. next ( timeout: timeout)
275275 }
276276
@@ -279,7 +279,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
279279 /// If the next notification is not a `PublishDiagnosticsNotification`, this
280280 /// methods throws.
281281 package func nextDiagnosticsNotification(
282- timeout: Duration = . seconds ( defaultTimeout )
282+ timeout: Duration = defaultTimeoutDuration
283283 ) async throws -> PublishDiagnosticsNotification {
284284 guard !usePullDiagnostics else {
285285 struct PushDiagnosticsError : Error , CustomStringConvertible {
@@ -295,7 +295,7 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
295295 package func nextNotification< ExpectedNotificationType: NotificationType > (
296296 ofType: ExpectedNotificationType . Type ,
297297 satisfying predicate: ( ExpectedNotificationType ) throws -> Bool = { _ in true } ,
298- timeout: Duration = . seconds ( defaultTimeout )
298+ timeout: Duration = defaultTimeoutDuration
299299 ) async throws -> ExpectedNotificationType {
300300 while true {
301301 let nextNotification = try await nextNotification ( timeout: timeout)
0 commit comments