From ad5fbe74a861422f2c5879d393ce389a4f902ea5 Mon Sep 17 00:00:00 2001 From: Herval Freire Date: Thu, 21 Nov 2024 13:42:43 -0500 Subject: [PATCH] rightsizing connections to speed up xctest process (#2143) --- .../src/main/kotlin/xcuitest/XCTestDriverClient.kt | 4 ++-- .../main/kotlin/xcuitest/installer/LocalXCTestInstaller.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maestro-ios-driver/src/main/kotlin/xcuitest/XCTestDriverClient.kt b/maestro-ios-driver/src/main/kotlin/xcuitest/XCTestDriverClient.kt index 9f0a7cf3ed..a491a26f73 100644 --- a/maestro-ios-driver/src/main/kotlin/xcuitest/XCTestDriverClient.kt +++ b/maestro-ios-driver/src/main/kotlin/xcuitest/XCTestDriverClient.kt @@ -50,8 +50,8 @@ class XCTestDriverClient( } private val okHttpClient = OkHttpClient.Builder() - .connectTimeout(40, TimeUnit.SECONDS) - .readTimeout(100, TimeUnit.SECONDS) + .connectTimeout(1, TimeUnit.SECONDS) + .readTimeout(200, TimeUnit.SECONDS) .apply { httpInterceptor?.let { this.addInterceptor(it) diff --git a/maestro-ios-driver/src/main/kotlin/xcuitest/installer/LocalXCTestInstaller.kt b/maestro-ios-driver/src/main/kotlin/xcuitest/installer/LocalXCTestInstaller.kt index 8e3894ec1c..cca58defb8 100644 --- a/maestro-ios-driver/src/main/kotlin/xcuitest/installer/LocalXCTestInstaller.kt +++ b/maestro-ios-driver/src/main/kotlin/xcuitest/installer/LocalXCTestInstaller.kt @@ -142,7 +142,7 @@ class LocalXCTestInstaller( .build() val okHttpClient = OkHttpClient.Builder() - .connectTimeout(40, TimeUnit.SECONDS) + .connectTimeout(1, TimeUnit.SECONDS) .readTimeout(100, TimeUnit.SECONDS) .build()