Fixed race condition in test.

This commit is contained in:
Simone Bordet 2013-05-02 23:50:24 +02:00
parent 827a7f48b8
commit 5bea4cc781
1 changed files with 1 additions and 2 deletions

View File

@ -332,10 +332,9 @@ public class ReferrerPushStrategyTest extends AbstractHTTPSPDYTest
if (dataInfo.isClose())
{
currentStreamId.compareAndSet(currentStreamId.get(), currentStreamId.get() + 2);
allPushDataReceivedLatch.countDown();
dataReceivedOrder.add(stream.getId());
allPushDataReceivedLatch.countDown();
}
LOG.info(stream.getId() + ":" + dataInfo);
}
};