Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for _fail (0.31 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          |-----END PRIVATE KEY-----
          |
          """.trimMargin()
        try {
          decode(certificatePem)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo("string does not include a private key")
        }
        try {
          decode(pkcs8Pem)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

        redirect from one hostname to another, and where both hosts had common certificates.
    
     *  Fix: Don't fail on a redirect when a client has configured a 'trust everything' trust manager.
        Typically this would cause certain redirects to fail in debug and development configurations.
    
    
    ## Version 4.4.0
    
    _2020-02-17_
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        // TODO: write a test that shows pooled connections detect HTTP/1.0 (vs. HTTP/1.1)
        fail("TODO")
      }
    
      @Test
      @Disabled
      fun postBodiesRetransmittedOnAuthProblems() {
        fail("TODO")
      }
    
      @Test
      @Disabled
      fun cookiesAndTrailers() {
        // Do cookie headers get processed too many times?
        fail("TODO")
      }
    
      @Test
      fun emptyRequestHeaderValueIsAllowed() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.hasMessage
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.fail
    import javax.net.ssl.SSLSocket
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketPolicy.DoNotReadRequestBody
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Callback.kt

     */
    package okhttp3
    
    import okio.IOException
    
    interface Callback {
      /**
       * Called when the request could not be executed due to cancellation, a connectivity problem or
       * timeout. Because networks can fail during an exchange, it is possible that the remote server
       * accepted the request before the failure.
       */
      fun onFailure(
        call: Call,
        e: IOException,
      )
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

              null -> return // no open event
              true -> return // found open event
              false -> return@loop // this is not the open event so continue
            }
          }
          Assertions.fail<Any>("event $e without matching start event")
        }
      }
    
      override fun connectStart(
        route: Route,
        call: Call,
      ) = logEvent(ConnectionEvent.ConnectStart(System.nanoTime(), route, call))
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

         * Connections will still be closed if they idle beyond the keep-alive but will be replaced.
         */
        @JvmField val minimumConcurrentCalls: Int = 0,
        /** How long to wait to retry pre-emptive connection attempts that fail. */
        @JvmField val backoffDelayMillis: Long = 60 * 1000,
        /** How much jitter to introduce in connection retry backoff delays */
        @JvmField val backoffJitterMillis: Int = 100,
      )
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

       * in practice. To simplify the implementation, we've avoided implementing the flexible rules in
       * favor of supporting what's actually used in practice. That means if these assertions ever fail,
       * the implementation will need to be revisited to support a more flexible rule.
       */
      private fun assertWildcardRule(rule: String) {
        check(rule.startsWith(WILDCARD_CHAR)) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

      private val random = Random(0)
    
      /**
       * Check all data as verified inside of the test. We do this in an AfterEachCallback so that
       * exceptions thrown from the test do not cause this check to fail.
       */
      @RegisterExtension
      val noDataLeftBehind =
        AfterEachCallback { context: ExtensionContext ->
          if (context.executionException.isPresent) return@AfterEachCallback
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        // order, not in increasing index order.
        val codePoints = mutableListOf<Int>()
    
        // consume all code points before the last delimiter (if there is one)
        //  and copy them to output, fail on any non-basic code point
        val lastDelimiter = string.lastIndexOf('-', limit)
        if (lastDelimiter >= pos) {
          while (pos < lastDelimiter) {
            when (val codePoint = string[pos++]) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top