Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for 500 (0.22 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt

    fun formatDuration(ns: Long): String {
      val s =
        when {
          ns <= -999_500_000 -> "${(ns - 500_000_000) / 1_000_000_000} s "
          ns <= -999_500 -> "${(ns - 500_000) / 1_000_000} ms"
          ns <= 0 -> "${(ns - 500) / 1_000} µs"
          ns < 999_500 -> "${(ns + 500) / 1_000} µs"
          ns < 999_500_000 -> "${(ns + 500_000) / 1_000_000} ms"
          else -> "${(ns + 500_000_000) / 1_000_000_000} s "
        }
      return String.format("%6s", s)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/concurrent/TaskLoggerTest.kt

        assertThat(formatDuration(-2_500_000_000L)).isEqualTo(" -3 s ")
        assertThat(formatDuration(-2_499_999_999L)).isEqualTo(" -2 s ")
        assertThat(formatDuration(-1_500_000_000L)).isEqualTo(" -2 s ")
        assertThat(formatDuration(-1_499_999_999L)).isEqualTo(" -1 s ")
        assertThat(formatDuration(-1_000_000_000L)).isEqualTo(" -1 s ")
        assertThat(formatDuration(  -999_500_000L)).isEqualTo(" -1 s ")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

            .throttleBody((64 * 1024).toLong(), 125, TimeUnit.MILLISECONDS),
        ) // 500 Kbps
        server.start()
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .build(),
          )
        val response = call.execute()
        interruptLater(500)
        val responseBody = response.body.byteStream()
        val buffer = ByteArray(1024)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

      }
    
      @Test
      fun timeoutWritingRequest() {
        server.enqueue(MockResponse())
        val request =
          Request.Builder()
            .url(server.url("/"))
            .post(sleepingRequestBody(500))
            .build()
        val call = client.newCall(request)
        call.timeout().timeout(250, TimeUnit.MILLISECONDS)
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

              Buffer()
                .write(ByteArray(responseBodySize)),
            )
            .throttleBody(64 * 1024, 125, MILLISECONDS) // 500 Kbps
            .build(),
        )
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        cancelLater(call, 500)
        val responseBody = response.body.byteStream()
        val buffer = ByteArray(1024)
        assertFailsWith<IOException> {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

                assertEquals(128, crawlingInfoHelper.generateId(value.substring(0, 490)).length());
                assertEquals(128, crawlingInfoHelper.generateId(value.substring(0, 500)).length());
                assertEquals(128, crawlingInfoHelper.generateId(value.substring(0, 510)).length());
                assertEquals(128, crawlingInfoHelper.generateId(value.substring(0, 520)).length());
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      private val serverListener = WebSocketRecorder("server")
      private val random = Random(0)
      private var client =
        clientTestRule.newClientBuilder()
          .writeTimeout(Duration.ofMillis(500))
          .readTimeout(Duration.ofMillis(500))
          .addInterceptor(
            Interceptor { chain: Interceptor.Chain ->
              val response = chain.proceed(chain.request())
              // Ensure application interceptors never see a null body.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  8. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

        client =
          client.newBuilder()
            .callTimeout(250, TimeUnit.MILLISECONDS)
            .build()
        server.enqueue(
          MockResponse.Builder()
            .bodyDelay(500, TimeUnit.MILLISECONDS)
            .setHeader("content-type", "text/event-stream")
            .body("data: hey\n\n")
            .build(),
        )
        val source = newEventSource()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial008d_an.py

        from docs_src.dependencies.tutorial008d_an import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
        assert response.status_code == 500, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/admin/PluginTests.java

                            .anyMatch(a -> a.getName().equals(target.getName()) && a.getVersion().equals(target.getVersion()));
                    if (!exists) {
                        ThreadUtil.sleep(500);
                        continue;
                    }
                    assertTrue(exists);
                    done = true;
                    break;
                }
                assertTrue(done);
            }
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6K bytes
    - Viewed (0)
Back to top