- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for 250ms (0.02 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
val bodySource = response.body.source() assertThat(bodySource.readByte()).isEqualTo('d'.code.toByte()) // The second byte of this request will be delayed by 750ms so we should time out after 250ms. val startNanos = System.nanoTime() bodySource.use { assertFailsWith<IOException> { bodySource.readByte() }.also { expected -> // Timed out as expected.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java
assertTrue("Expected at least 15ms sleep, got " + elapsed + "ms", elapsed >= 15); // Generous tolerance for CI environments like GitHub Actions assertTrue("Expected less than 200ms sleep, got " + elapsed + "ms", elapsed < 200); } @Test public void test_waitForNext_withZeroInterval() { configHelper.setReloadInterval(0L); long startTime = System.currentTimeMillis();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 4.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java
// Ensure alive starts as true assertTrue(dataStore.alive); final int readerThreadCount = 5; final long testDurationMs = 200; // Run for 200ms final Thread[] readerThreads = new Thread[readerThreadCount]; final java.util.List<Boolean>[] observations = new java.util.List[readerThreadCount]; final CountDownLatch startLatch = new CountDownLatch(1);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.8K bytes - Click Count (1) -
src/test/java/org/codelibs/fess/it/CrawlTestBase.java
} fail("could not start job."); } protected static void waitJob(final String namePrefix) { Boolean isRunning = false; int count = 0; long sleepTime = 50; // Start with 50ms // Wait until the crawler starts (with exponential backoff) while (count < 1500 && !isRunning) { ThreadUtil.sleep(sleepTime); count++;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 10.6K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java
" <div class=\"wistia_swatch\" style=\"height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;\"> \n" +
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Mar 03 01:59:51 GMT 2026 - 11.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
* to hang (possibly too quickly, but too-quick failures should be very unlikely, given that we * used to bail after 20ms during the expected-successful tests, and there we saw a failure rate * of ~1/5000, meaning that the other thread's get() call nearly always completes within 20ms if * it's going to complete at all). * * <p>[*] To avoid hangs, I've disabled the in-thread calls. This makes the test take (very
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
* to hang (possibly too quickly, but too-quick failures should be very unlikely, given that we * used to bail after 20ms during the expected-successful tests, and there we saw a failure rate * of ~1/5000, meaning that the other thread's get() call nearly always completes within 20ms if * it's going to complete at all). * * <p>[*] To avoid hangs, I've disabled the in-thread calls. This makes the test take (very
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0)