From 6f6b02332728c6750932d5628dc0d9aecc006fb4 Mon Sep 17 00:00:00 2001 From: Ben Bader Date: Wed, 1 Nov 2023 10:22:52 -0600 Subject: [PATCH] Bigger NwSocketTest read timeout --- thrifty-runtime/build.gradle | 1 - .../kotlin/com/microsoft/thrifty/transport/NwSocketTest.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/thrifty-runtime/build.gradle b/thrifty-runtime/build.gradle index 779441bf7..1ec2012b7 100644 --- a/thrifty-runtime/build.gradle +++ b/thrifty-runtime/build.gradle @@ -221,7 +221,6 @@ abstract class IosTestTask extends DefaultTask { } tasks.register("iosTest", IosTestTask) { - dependsOn 'compileTestThrift' dependsOn 'linkDebugTestIosX64' group = JavaBasePlugin.VERIFICATION_GROUP diff --git a/thrifty-runtime/src/iosTest/kotlin/com/microsoft/thrifty/transport/NwSocketTest.kt b/thrifty-runtime/src/iosTest/kotlin/com/microsoft/thrifty/transport/NwSocketTest.kt index ef35053f1..a130fc659 100644 --- a/thrifty-runtime/src/iosTest/kotlin/com/microsoft/thrifty/transport/NwSocketTest.kt +++ b/thrifty-runtime/src/iosTest/kotlin/com/microsoft/thrifty/transport/NwSocketTest.kt @@ -137,7 +137,7 @@ class NwSocketTest { dispatch_async(clientQueue) { try { val port = nw_listener_get_port(serverListener) - SocketTransport.Builder("127.0.0.1", port.toInt()).readTimeout(100).build() + SocketTransport.Builder("127.0.0.1", port.toInt()).readTimeout(5000).build() .use { transport -> transport.connect() val protocol = BinaryProtocol(transport)