Added back the await() step to ensure the getPatients() call returns 2 Patients.
This commit is contained in:
@@ -33,6 +33,7 @@ import static ca.uhn.fhir.util.TestUtil.waitForSize;
|
|||||||
import static java.util.Comparator.comparing;
|
import static java.util.Comparator.comparing;
|
||||||
import static org.awaitility.Awaitility.await;
|
import static org.awaitility.Awaitility.await;
|
||||||
import static org.awaitility.Awaitility.pollInSameThread;
|
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.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||||
|
|
||||||
@@ -82,7 +83,7 @@ public class ExampleServerR4IT {
|
|||||||
ourLog.info("Patient: " + p.getId() + " : " + p.toString());
|
ourLog.info("Patient: " + p.getId() + " : " + p.toString());
|
||||||
}
|
}
|
||||||
// Wait until the MDM message has been processed
|
// Wait until the MDM message has been processed
|
||||||
//await().until(() -> getPatients().size(), equalTo(2));
|
await().until(() -> getPatients().size(), equalTo(2));
|
||||||
List<Patient> persons = getPatients();
|
List<Patient> persons = getPatients();
|
||||||
Patient goldenRecord = persons.get(0);
|
Patient goldenRecord = persons.get(0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user