Fixed race condition in test.
This commit is contained in:
parent
827a7f48b8
commit
5bea4cc781
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue