Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for closeMessageAndConnectionCloseThrowingDoesNotMaskOriginal (0.26 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

        client.webSocket!!.close(1000, null)
        taskFaker.runTasks()
        client.listener.assertFailure(IOException::class.java, "source is closed")
      }
    
      @Test
      fun closeMessageAndConnectionCloseThrowingDoesNotMaskOriginal() {
        // So when the client sends close it throws an IOException.
        server.source.close()
        client.webSocket!!.close(1000, "Bye!")
        taskFaker.runTasks()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
Back to top