Skip to content

Commit fac5517

Browse files
trying to do like the other tests
1 parent c47d39f commit fac5517

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

e2e-tests/src/test/java/uk/nhs/adaptors/gp2gp/e2e/EhrExtractTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,16 @@ void When_ExtractRequestReceivedForPatientWithoutClinicalContent_Expect_ExtractS
449449
String ehrExtractRequest = buildEhrExtractRequest(conversationId, NHS_NUMBER_NO_CLINICAL_CONTENT_STRUCTURE, FROM_ODS_CODE_1);
450450
MessageQueue.sendToMhsInboundQueue(ehrExtractRequest);
451451

452+
var requestJournal = waitFor(() -> {
453+
try {
454+
return mhsMockRequestsJournal.getRequestsJournal(conversationId);
455+
} catch (IOException | InterruptedException e) {
456+
throw new RuntimeException(e);
457+
}
458+
});
459+
460+
assertThat(requestJournal).hasSize(1);
461+
452462
var ehrExtractStatus = waitFor(() -> Mongo.findEhrExtractStatus(conversationId));
453463
assertThatInitialRecordWasCreated(conversationId, ehrExtractStatus, NHS_NUMBER_NO_CLINICAL_CONTENT_STRUCTURE, FROM_ODS_CODE_1);
454464

0 commit comments

Comments
 (0)