diff --git a/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchDistanceTest.java b/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchDistanceTest.java index 746c107ce90..8bc81c7a5d9 100644 --- a/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchDistanceTest.java +++ b/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchDistanceTest.java @@ -79,6 +79,7 @@ public class FhirResourceDaoR4SearchDistanceTest extends BaseJpaR4Test { parameter.setType(Enumerations.SearchParamType.SPECIAL); parameter.setExpression("Location.address.postalCode"); mySearchParameterDao.update(parameter, new SystemRequestDetails()); + mySearchParamRegistry.forceRefresh(); //And given an OrganizationAffiliation->Location reference Location location = new Location();