Fix test race condition.
This commit is contained in:
parent
72c4726328
commit
01568ab0b5
4
hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/resthook/RestHookWithInterceptorR4Test.java
Normal file → Executable file
4
hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/resthook/RestHookWithInterceptorR4Test.java
Normal file → Executable 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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue