Made test more reliable.
This commit is contained in:
parent
20c0f23cc7
commit
51f307ca7c
|
@ -824,8 +824,8 @@ public class ServerHTTPSPDYv2Test extends AbstractHTTPSPDYTest
|
||||||
@Override
|
@Override
|
||||||
public void onData(Stream stream, DataInfo dataInfo)
|
public void onData(Stream stream, DataInfo dataInfo)
|
||||||
{
|
{
|
||||||
Assert.assertTrue(dataInfo.isClose());
|
if (dataInfo.isClose())
|
||||||
dataLatch.countDown();
|
dataLatch.countDown();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Assert.assertTrue(handlerLatch.await(5, TimeUnit.SECONDS));
|
Assert.assertTrue(handlerLatch.await(5, TimeUnit.SECONDS));
|
||||||
|
|
Loading…
Reference in New Issue