diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchPageExpiryTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchPageExpiryTest.java index 4d056b65aa3..48dd7d48d59 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchPageExpiryTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchPageExpiryTest.java @@ -375,6 +375,8 @@ public class FhirResourceDaoR4SearchPageExpiryTest extends BaseJpaR4Test { } }); + mySearchCoordinatorSvc.cancelAllActiveSearches(); + myDaoConfig.setExpireSearchResults(true); myStaleSearchDeletingSvc.pollForStaleSearchesAndDeleteThem();