Made test more reliable.

This commit is contained in:
Simone Bordet 2012-06-04 15:58:49 +02:00
parent 20c0f23cc7
commit 51f307ca7c
1 changed files with 2 additions and 2 deletions

View File

@ -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));