Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 250ms (0.02 sec)

  1. 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.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 147.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/DefaultIntervalControllerTest.java

            final long start = System.nanoTime();
            controller.delayForWaitingNewUrl();
            final long elapsed = (System.nanoTime() - start) / 1000000;
    
            assertTrue("Expected at least 200ms delay", elapsed >= 180);
        }
    
        /**
         * Test that negative delay values are handled (treated as zero)
         */
        public void test_negativeDelayValues() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:58:39 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top