From 01568ab0b5d4de2b2208eb6186fe5ea252362226 Mon Sep 17 00:00:00 2001 From: Ken Stevens Date: Tue, 19 Feb 2019 21:14:11 -0500 Subject: [PATCH] Fix test race condition. --- .../subscription/resthook/RestHookWithInterceptorR4Test.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) mode change 100644 => 100755 hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/resthook/RestHookWithInterceptorR4Test.java diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/resthook/RestHookWithInterceptorR4Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/resthook/RestHookWithInterceptorR4Test.java old mode 100644 new mode 100755 index d61ae544bad..39b249864a8 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/resthook/RestHookWithInterceptorR4Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/resthook/RestHookWithInterceptorR4Test.java @@ -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(); } - }