Skip to content

Commit

Permalink
[kie-roadmap#52] Fix test, RequestInfo/ErrorInfo records are only del…
Browse files Browse the repository at this point in the history
…eted for ended process instances
  • Loading branch information
martinweiler committed May 8, 2023
1 parent 432acc6 commit 748834a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ public void deleteErrorLogsByDate() throws Exception {
List<ErrorInfo> errorList = getExecutorService().getAllErrors(new QueryContext());
Assertions.assertThat(errorList).hasSize(2);

// Abort running process instance
ksession.abortProcessInstance(pi.getId());

// Delete a record
int resultCount = auditService.errorInfoLogDeleteBuilder()
.date(errorList.get(0).getTime())
Expand All @@ -132,9 +135,6 @@ public void deleteErrorLogsByDate() throws Exception {

// Assert remaining records
Assertions.assertThat(getExecutorService().getAllErrors(new QueryContext())).hasSize(remaining);

// Abort running process instance
ksession.abortProcessInstance(pi.getId());
}

}

0 comments on commit 748834a

Please sign in to comment.