fabric8io / mockwebserver

An extension of okhttp's mockwebserver, that provides a DSL and is easier to use
Apache License 2.0
113 stars 38 forks source link

fix intermittent test failure #36

Closed jnupeter closed 5 years ago

jnupeter commented 5 years ago

The test case DefaultMockServerTest#"when setting a request/response websocket message it should be fired when the event is triggered" fails intermittently since sometimes message hasn't been queued fast enough before the assertion is done, so timeout happens at the second message.poll(). This PR fix this issue.

oscerd commented 5 years ago

Thanks