Skip to content

Commit

Permalink
fixed non-idempotent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyaok2 committed May 22, 2024
1 parent 492f41a commit 2ed978f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void testRunMultiEventProcessPerRequestRuntimeManager() {

processInstance = ksession.getProcessInstance(processInstance.getId());
assertNull(processInstance);

// close manager which will close session maintained by the manager
manager.close();
}
Expand Down Expand Up @@ -173,7 +173,9 @@ public void testRunMultiEventProcessPerProcessInstanceRuntimeManager() {

processInstance = ksession.getProcessInstance(processInstance.getId());
assertNull(processInstance);


manager.disposeRuntimeEngine(runtime);

// close manager which will close session maintained by the manager
manager.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ public void beforeProcessStarted(ProcessStartedEvent event) {
assertEquals(ksession1Id, ksessionUsed.iterator().next().longValue());


manager.disposeRuntimeEngine(runtime);
manager.close();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public void testMultiplePerRequestManagerFromSingleThread() {
assertEquals(ProcessInstance.STATE_ACTIVE, processInstance2.getState());

manager.disposeRuntimeEngine(runtime1);
manager.disposeRuntimeEngine(runtime2);
manager2.disposeRuntimeEngine(runtime2);

// close manager which will close session maintained by the manager
manager.close();
Expand Down

0 comments on commit 2ed978f

Please sign in to comment.