Added back the await() step to ensure the getPatients() call returns 2 Patients.

This commit is contained in:
Kevin Dougan
2021-02-08 11:02:04 -05:00
parent 845a493244
commit e5862422f3

View File

@@ -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<Patient> persons = getPatients();
Patient goldenRecord = persons.get(0);