Skip to content

Commit b4566a3

Browse files
Fix unit test
1 parent b076c3e commit b4566a3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

modules/flowable5-test/src/test/java/org/activiti/engine/test/api/history/HistoryServiceTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,12 @@ public void testHistoricVariableInstancesOnParallelExecution() {
548548

549549
assertEquals(1, historyService.createHistoricProcessInstanceQuery().variableValueEquals("rootValue", "test").count());
550550

551-
assertEquals(1, historyService.createHistoricProcessInstanceQuery().variableValueEquals("parallelValue1", "Receive Payment").count());
552-
assertEquals(1, historyService.createHistoricProcessInstanceQuery().variableValueEquals("parallelValue1", "Ship Order").count());
553-
assertEquals(1, historyService.createHistoricProcessInstanceQuery().variableValueEquals("parallelValue2", "test").count());
551+
assertEquals(0, historyService.createHistoricProcessInstanceQuery().variableValueEquals("parallelValue1", "Receive Payment").count());
552+
assertEquals(1, historyService.createHistoricProcessInstanceQuery().localVariableValueEquals("parallelValue1", "Receive Payment").count());
553+
assertEquals(0, historyService.createHistoricProcessInstanceQuery().variableValueEquals("parallelValue1", "Ship Order").count());
554+
assertEquals(1, historyService.createHistoricProcessInstanceQuery().localVariableValueEquals("parallelValue1", "Ship Order").count());
555+
assertEquals(0, historyService.createHistoricProcessInstanceQuery().variableValueEquals("parallelValue2", "test").count());
556+
assertEquals(1, historyService.createHistoricProcessInstanceQuery().localVariableValueEquals("parallelValue2", "test").count());
554557
}
555558

556559
/**

0 commit comments

Comments
 (0)