testing: Fix flake in AbstractTransportTest.flowControlPushBack
This attempts to fix a flake seen exactly once with the currently-disabled OkHttpTransportTest.flowControlPushBack: ``` java.lang.AssertionError at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at io.grpc.internal.testing.AbstractTransportTest.flowControlPushBack(AbstractTransportTest.java:1300) ``` That was a failure for assertTrue(serverStream.isReady()), because the awaitOnReady was finding the previous invocation of onReady. We now track how many times it has been called. This was a bug introduced in a8db1547 but wouldn't have been noticed since the in-process transport is deterministic.
Loading
Please sign in to comment