From 4c064186a99c17e2d333685d591173a63646fe97 Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Wed, 25 Sep 2019 05:39:00 -0400 Subject: [PATCH] Try to fix intermittent testfailure --- .../ca/uhn/fhir/jpa/dao/r4/ConsentEventsDaoR4Test.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/ConsentEventsDaoR4Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/ConsentEventsDaoR4Test.java index a27ce5db65f..167e9bd12aa 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/ConsentEventsDaoR4Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/ConsentEventsDaoR4Test.java @@ -98,6 +98,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { assertEquals(myObservationIds.subList(0, 20), interceptedResourceIds); // Fetch the next 30 (do cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); resources = outcome.getResources(10, 40); returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(myObservationIds.subList(10, 40), returnedIdValues); @@ -129,6 +130,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { assertEquals(myObservationIds.subList(0, 20), interceptedResourceIds); // Fetch the next 30 (do cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); resources = outcome.getResources(10, 40); returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(myObservationIdsEvenOnly.subList(10, 25), returnedIdValues); @@ -160,6 +162,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { assertEquals(myObservationIds, interceptedResourceIds); // Fetch the next 30 (do cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); resources = outcome.getResources(10, 40); returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(myObservationIdsEvenOnly.subList(10, 25), returnedIdValues); @@ -184,6 +187,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { ourLog.info("Search UUID: {}", outcome.getUuid()); // Fetch the first 10 (don't cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); List resources = outcome.getResources(0, 100); List returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(sort(myPatientIdsEvenOnly, myObservationIdsEvenOnly), sort(returnedIdValues)); @@ -209,6 +213,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { ourLog.info("Search UUID: {}", outcome.getUuid()); // Fetch the first 10 (don't cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); List resources = outcome.getResources(0, 100); List returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(sort(myPatientIdsEvenOnly, myObservationIdsEvenOnly), sort(returnedIdValues)); @@ -232,6 +237,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { ourLog.info("Search UUID: {}", outcome.getUuid()); // Fetch the first 10 (don't cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); List resources = outcome.getResources(0, 100); List returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(sort(myPatientIdsEvenOnly, myObservationIdsEvenOnly), sort(returnedIdValues)); @@ -257,6 +263,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { ourLog.info("Search UUID: {}", outcome.getUuid()); // Fetch the first 10 (don't cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); List resources = outcome.getResources(0, 100); List returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(sort(myPatientIds, myObservationIds), sort(returnedIdValues)); @@ -281,6 +288,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { ourLog.info("Search UUID: {}", outcome.getUuid()); // Fetch the first 10 (don't cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); List resources = outcome.getResources(0, 100); List returnedIdValues = toUnqualifiedVersionlessIdValues(resources); assertEquals(sort(myPatientIdsEvenOnly, myObservationIdsEvenOnly), sort(returnedIdValues)); @@ -304,6 +312,7 @@ public class ConsentEventsDaoR4Test extends BaseJpaR4SystemTest { ourLog.info("Search UUID: {}", outcome.getUuid()); // Fetch the first 10 (don't cross a fetch boundary) + outcome = myPagingProvider.retrieveResultList(mySrd, outcome.getUuid()); List resources = outcome.getResources(0, 10); List returnedIdValues = toUnqualifiedVersionlessIdValues(resources); ourLog.info("Returned values: {}", returnedIdValues);