Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assertClose (0.06 sec)

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

            ) {
              webSocket.close(1000, null)
            }
          },
        )
        server.close(1001, "bye")
        clientListener.assertClosed(1001, "bye")
        clientListener.assertExhausted()
        serverListener.assertClosing(1000, "")
        serverListener.assertClosed(1000, "")
        serverListener.assertExhausted()
      }
    
      @Test
      fun unplannedCloseHandledWithoutFailure() {
        webServer.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        assertThat(client.processNextFrame()).isFalse()
        client.listener.assertClosing(1000, "Goodbye!")
        client.webSocket!!.finishReader()
        server.listener.assertClosed(1000, "Hello!")
        client.listener.assertClosed(1000, "Goodbye!")
      }
    
      @Test
      fun clientCloseThenMethodsReturnFalse() {
        client.webSocket!!.close(1000, "Hello!")
        assertThat(client.webSocket!!.close(1000, "Hello!")).isFalse()
    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