- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for ofSeconds (0.17 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
assertThat(chain.connectTimeoutMillis()).isEqualTo(100) chain.proceed(chain.request()) } client = client .newBuilder() .connectTimeout(Duration.ofSeconds(5)) .addInterceptor(interceptor1) .addInterceptor(interceptor2) .build() val request1 = Request .Builder() .url("http://" + TestUtil.UNREACHABLE_ADDRESS_IPV4)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 28.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
builder = builder.callTimeout(Duration.ofSeconds(0L)) builder = builder.connectTimeout(0L, TimeUnit.SECONDS) builder = builder.connectTimeout(Duration.ofSeconds(0L)) builder = builder.readTimeout(0L, TimeUnit.SECONDS) builder = builder.readTimeout(Duration.ofSeconds(0L)) builder = builder.writeTimeout(0L, TimeUnit.SECONDS) builder = builder.writeTimeout(Duration.ofSeconds(0L))
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 47K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
} @J2ktIncompatible @GwtIncompatible // reflection public void testSuppliersNullChecks() throws Exception { new ClassSanityTester() .setDefault(Duration.class, Duration.ofSeconds(1)) .forAllPublicStaticMethods(Suppliers.class) .testNulls(); } @J2ktIncompatible @GwtIncompatible // reflection
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 17.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
} @J2ktIncompatible @GwtIncompatible // reflection public void testSuppliersNullChecks() throws Exception { new ClassSanityTester() .setDefault(Duration.class, Duration.ofSeconds(1)) .forAllPublicStaticMethods(Suppliers.class) .testNulls(); } @J2ktIncompatible @GwtIncompatible // reflection
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 17.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/QueuesTest.java
throw new AssertionError(); } finally { threadToInterrupt.interrupt(); } } } private static final Duration MAX_DURATION = Duration.ofSeconds(Long.MAX_VALUE, 999_999_999);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Nov 04 17:24:58 GMT 2025 - 12.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
public void testTimeToLive_negative_duration() { CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder(); assertThrows( IllegalArgumentException.class, () -> builder.expireAfterWrite(Duration.ofSeconds(-1))); } @SuppressWarnings("ReturnValueIgnored") public void testTimeToLive_small() { CacheBuilder.newBuilder().expireAfterWrite(1, NANOSECONDS).build(identityLoader()); // well, it didn't blow up.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 25.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
client .newBuilder() .build() .routeDatabase, ) assertSame( client.routeDatabase, client .newBuilder() .callTimeout(Duration.ofSeconds(5)) .build() .routeDatabase, ) // logically different scope of client for route db assertNotSame( client.routeDatabase, client .newBuilder()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 13.4K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
server.enqueue(MockResponse.Builder().onResponseStart(Stall).build()) server.enqueue(MockResponse(body = "A")) client = client .newBuilder() .readTimeout(Duration.ofSeconds(1)) .build() // Make a call expecting a timeout reading the response headers. val call1 = client.newCall(Request(server.url("/"))) assertFailsWith<SocketTimeoutException> {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 67.4K bytes - Click Count (0) -
build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts
enabled = true project.maxTestDistributionPartitionSecond?.apply { preferredMaxDuration = Duration.ofSeconds(this) } maxRemoteExecutors = if (project.isPerformanceProject()) 0 else project.maxTestDistributionRemoteExecutors maxLocalExecutors = project.maxTestDistributionLocalExecutorsCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Dec 19 06:44:41 GMT 2025 - 18.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
.throttleBody(1, 750, TimeUnit.MILLISECONDS) .build(), ) // First request: time out after 1s. client = client .newBuilder() .readTimeout(Duration.ofSeconds(1)) .build() executeSynchronously("/a").assertBody("abc") // Second request: time out after 250ms. client = client .newBuilder()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 147.4K bytes - Click Count (0)