mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-08 22:14:50 +00:00
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…
x
Reference in New Issue
Block a user