Fix intermittent failure
This commit is contained in:
parent
b2a4ff2f29
commit
c73fd288f0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue