From 4c1bbd01cb30e6d1efe88bebf2630ec18332375c Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Tue, 17 Mar 2020 14:19:36 -0400 Subject: [PATCH] Intermittent test fix --- .../uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java index 22760f3d62a..e465c6d03a6 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java @@ -1120,11 +1120,12 @@ public class FhirResourceDaoR4SearchNoFtTest extends BaseJpaR4Test { @Test public void testSearchByIdParamAndOtherSearchParam_QueryIsMinimal() { SearchParameterMap params = new SearchParameterMap(); + params.setLoadSynchronous(true); params.add("_id", new StringParam("DiagnosticReport/123")); params.add("_id", new StringParam("DiagnosticReport/123")); myCaptureQueriesListener.clear(); myDiagnosticReportDao.search(params).size(); - List selectQueries = myCaptureQueriesListener.getSelectQueries(); + List selectQueries = myCaptureQueriesListener.getSelectQueriesForCurrentThread(); assertEquals(1, selectQueries.size()); String sqlQuery = selectQueries.get(0).getSql(true, true).toLowerCase();