Skip to content

Commit

Permalink
Fix TestStrings.test222FormApproveByCheese
Browse files Browse the repository at this point in the history
The test was not deterministic and failed on faster machines.
  • Loading branch information
mederly committed May 23, 2020
1 parent f970da3 commit 74807a5
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -1061,7 +1061,9 @@ public void test222FormApproveByCheese() throws Exception {
// audit
displayDumpable("audit", dummyAuditService);
List<AuditEventRecord> records = dummyAuditService.getRecords();
assertEquals("Wrong # of audit records", 4, records.size());
if (records.size() != 4 && records.size() != 5) {
fail("Wrong # of audit records: " + records.size() + " (expected 4 or 5)");
}
AuditEventRecord record = records.get(0);
Collection<ObjectDeltaOperation<? extends ObjectType>> deltas = record.getDeltas();
assertEquals("Wrong # of deltas in audit record", 1, deltas.size());
Expand All @@ -1075,6 +1077,7 @@ public void test222FormApproveByCheese() throws Exception {

// record #1, #2: cancellation of work items of other approvers
// record #3: finishing process execution
// optional #4: asynchronous execution in task

CaseType rootCase = getCase(aCase.getParentRef().getOid());
waitForCaseClose(rootCase, CASE_WAIT_TIMEOUT);
Expand Down

0 comments on commit 74807a5

Please sign in to comment.