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 a1a4457
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 a1a4457

Please sign in to comment.