Skip to content

Commit

Permalink
MODAUD-183 - fixing the failed test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
gurleenkaurbp committed Mar 9, 2024
1 parent d74a146 commit f2a3041
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ public void postAuditHandlersLogRecord(String entity, Map<String, String> okapiH
.exceptionally(throwable -> {
LOGGER.warn("Error saving log event : {} due to : {}", entity, throwable.getLocalizedMessage());
return null;
}).thenAccept(v ->
asyncResultHandler.handle(succeededFuture(PostAuditHandlersLogRecordResponse.respond204()))
);
});
} catch (Exception e) {
LOGGER.warn("Error saving log event for entity {} due to {} ", entity, e.getMessage());
} finally {
asyncResultHandler.handle(succeededFuture(PostAuditHandlersLogRecordResponse.respond204()));
}
}


private CompletableFuture<List<LogRecord>> processAnonymize(List<LogRecord> records,
Map<String, String> okapiHeaders, Context vertxContext) {
LOGGER.debug("processAnonymize:: Processing anonymize for records");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void anonymizeLoanShouldRemoveUserDataFromRelatedRecords() {
.log().all()
.statusCode(204);

await().atLeast(1, TimeUnit.SECONDS);
await().pollDelay(1, TimeUnit.SECONDS).until(() -> true);

given().headers(HEADERS).get(CIRCULATION_LOGS_ENDPOINT + "?query=(items=845687423)")
.then().log().all().statusCode(200)
Expand Down

0 comments on commit f2a3041

Please sign in to comment.