Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for buildRequestThread (0.17 sec)

  1. mockwebserver/src/test/java/mockwebserver3/CustomDispatcherTest.kt

                latch.await()
              }
              return MockResponse()
            }
          }
        mockWebServer.dispatcher = dispatcher
        val startsFirst = buildRequestThread(firstRequest, firstResponseCode)
        startsFirst.start()
        val endsFirst = buildRequestThread(secondRequest, secondResponseCode)
        endsFirst.start()
        endsFirst.join()
        // First response is still waiting.
        assertThat(firstResponseCode.get()).isEqualTo(0)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top