Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure we finish setup mock before we use it in Http2ConnectionRoundt…
…ripTest.headersWriteForPeerStreamWhichWasResetShouldNotGoAway (netty#9645) Motivation: We did dispatch the client code before we did finish setup the mock and so may end up with org.mockito.exceptions.misusing.UnfinishedStubbingException if the connect happens quickly enough. See https://ci.netty.io/job/netty-centos6-java8-prb/1637/testReport/junit/io.netty.handler.codec.http2/Http2ConnectionRoundtripTest/headersWriteForPeerStreamWhichWasResetShouldNotGoAway/ Modifications: First finish setup the mock and the dispatch. Result: Fix flacky test
- Loading branch information