Fix intermittent failure

This commit is contained in:
jamesagnew 2021-10-11 20:53:04 -04:00
parent b2a4ff2f29
commit c73fd288f0
2 changed files with 4 additions and 3 deletions

View File

@ -80,9 +80,9 @@ public class TestR4Config extends BaseJavaConfigR4 {
try {
retVal = new ConnectionWrapper(super.getConnection());
} catch (Exception e) {
ourLog.error("Exceeded maximum wait for connection", e);
ourLog.error("Exceeded maximum wait for connection (" + ourMaxThreads + " max)", e);
logGetConnectionStackTrace();
fail("Exceeded maximum wait for connection: " + e.toString());
fail("Exceeded maximum wait for connection (" + ourMaxThreads + " max): " + e);
retVal = null;
}

View File

@ -234,7 +234,8 @@ public class EmailSubscriptionDstu3Test extends BaseResourceProviderDstu3Test {
sendObservation(code, "SNOMED-CT");
waitForQueueToDrain();
assertTrue(ourGreenMail.waitForIncomingEmail(1000, 1));
ourLog.info("About to wait for email reception");
assertTrue(ourGreenMail.waitForIncomingEmail(10000, 1));
List<MimeMessage> received = Arrays.asList(ourGreenMail.getReceivedMessages());
assertEquals(1, received.size());