Fix test race condition.

This commit is contained in:
Ken Stevens 2019-02-19 21:14:11 -05:00
parent 72c4726328
commit 01568ab0b5
1 changed files with 1 additions and 3 deletions

View File

@ -294,12 +294,10 @@ public class RestHookWithInterceptorR4Test extends BaseSubscriptionsR4Test {
@Hook(Pointcut.SUBSCRIPTION_AFTER_DELIVERY)
public void afterDelivery(ResourceDeliveryMessage theMessage) {
myFinishedLatch.countDown();
;
Validate.isTrue(myLastDelivery == null);
myLastDelivery = theMessage;
myFinishedLatch.countDown();
}
}