From e5862422f3c421c4b7f665ad252693791aff821c Mon Sep 17 00:00:00 2001 From: Kevin Dougan Date: Mon, 8 Feb 2021 11:02:04 -0500 Subject: [PATCH] Added back the await() step to ensure the getPatients() call returns 2 Patients. --- src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java b/src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java index 65338c8..5d35f60 100644 --- a/src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java +++ b/src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java @@ -33,6 +33,7 @@ import static ca.uhn.fhir.util.TestUtil.waitForSize; import static java.util.Comparator.comparing; import static org.awaitility.Awaitility.await; import static org.awaitility.Awaitility.pollInSameThread; +import static org.hamcrest.Matchers.equalTo; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -82,7 +83,7 @@ public class ExampleServerR4IT { ourLog.info("Patient: " + p.getId() + " : " + p.toString()); } // Wait until the MDM message has been processed - //await().until(() -> getPatients().size(), equalTo(2)); + await().until(() -> getPatients().size(), equalTo(2)); List persons = getPatients(); Patient goldenRecord = persons.get(0);