Intermittent test fix

This commit is contained in:
jamesagnew 2020-03-17 14:19:36 -04:00
parent 22413911bf
commit 4c1bbd01cb
1 changed files with 2 additions and 1 deletions

View File

@ -1120,11 +1120,12 @@ public class FhirResourceDaoR4SearchNoFtTest extends BaseJpaR4Test {
@Test @Test
public void testSearchByIdParamAndOtherSearchParam_QueryIsMinimal() { public void testSearchByIdParamAndOtherSearchParam_QueryIsMinimal() {
SearchParameterMap params = new SearchParameterMap(); SearchParameterMap params = new SearchParameterMap();
params.setLoadSynchronous(true);
params.add("_id", new StringParam("DiagnosticReport/123")); params.add("_id", new StringParam("DiagnosticReport/123"));
params.add("_id", new StringParam("DiagnosticReport/123")); params.add("_id", new StringParam("DiagnosticReport/123"));
myCaptureQueriesListener.clear(); myCaptureQueriesListener.clear();
myDiagnosticReportDao.search(params).size(); myDiagnosticReportDao.search(params).size();
List<SqlQuery> selectQueries = myCaptureQueriesListener.getSelectQueries(); List<SqlQuery> selectQueries = myCaptureQueriesListener.getSelectQueriesForCurrentThread();
assertEquals(1, selectQueries.size()); assertEquals(1, selectQueries.size());
String sqlQuery = selectQueries.get(0).getSql(true, true).toLowerCase(); String sqlQuery = selectQueries.get(0).getSql(true, true).toLowerCase();