Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for afterSocketClosedPingFailsWebSocket (0.15 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

          client.webSocket!!.close(0, null)
        }.also { expected ->
          assertThat("Code must be in range [1000,5000): 0")
            .isEqualTo(expected.message)
        }
      }
    
      @Test
      fun afterSocketClosedPingFailsWebSocket() {
        client2Server.source.close()
        client.webSocket!!.pong("Ping!".encodeUtf8())
        taskFaker.runTasks()
        client.listener.assertFailure(IOException::class.java, "source is closed")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top