Skip to content

Commit

Permalink
add missing props to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvard Fonsell committed Jan 23, 2020
1 parent 5eed7d8 commit c5a7f07
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public void setup() {
env.setProperty("nflow.executor.stateProcessingRetryDelay.seconds", "1");
env.setProperty("nflow.executor.stateSaveRetryDelay.seconds", "60");
env.setProperty("nflow.executor.stateVariableValueTooLongRetryDelay.minutes", "60");
env.setProperty("nflow.executor.fetchChildWorkflowIds", "false");
env.setProperty("nflow.db.workflowInstanceType.cacheSize", "10000");
when(executorDao.isTransactionSupportEnabled()).thenReturn(true);
when(executorDao.isAutoCommitEnabled()).thenReturn(true);
executor = new WorkflowInstanceExecutor(3, 2, 0, 10, 0, new CustomizableThreadFactory("nflow-executor-"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public void setup() {
env.setProperty("nflow.executor.stateProcessingRetryDelay.seconds", "1");
env.setProperty("nflow.executor.stateSaveRetryDelay.seconds", "60");
env.setProperty("nflow.executor.stateVariableValueTooLongRetryDelay.minutes", "60");
env.setProperty("nflow.executor.fetchChildWorkflowIds", "false");
env.setProperty("nflow.db.workflowInstanceType.cacheSize", "10000");
factory = new WorkflowStateProcessorFactory(workflowDefinitions, workflowInstances, objectMapper, workflowInstanceDao,
workflowInstancePreProcessor, env);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ public void setup() {
env.setProperty("nflow.executor.stateProcessingRetryDelay.seconds", "1");
env.setProperty("nflow.executor.stateSaveRetryDelay.seconds", "1");
env.setProperty("nflow.executor.stateVariableValueTooLongRetryDelay.minutes", "60");
env.setProperty("nflow.executor.fetchChildWorkflowIds", "true");
env.setProperty("nflow.db.workflowInstanceType.cacheSize", "10000");
executor = new WorkflowStateProcessor(1, objectMapper, workflowDefinitions, workflowInstances, workflowInstanceDao,
workflowInstancePreProcessor, env, processingInstances, listener1, listener2);
setCurrentMillisFixed(currentTimeMillis());
Expand Down
2 changes: 2 additions & 0 deletions nflow-engine/src/test/resources/junit.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ nflow.executor.timeout.seconds=900
nflow.executor.keepalive.seconds=60
nflow.executor.stateSaveRetryDelay.seconds=60
nflow.executor.stateVariableValueTooLongRetryDelay.minutes=60
nflow.executor.fetchChildWorkflowIds=false

nflow.workflow.instance.query.max.results=10000
nflow.workflow.instance.query.max.results.default=100
Expand All @@ -18,3 +19,4 @@ nflow.db.max_pool_size=20
nflow.db.idle_timeout_seconds=600
nflow.db.create_on_startup=true
nflow.db.disable_batch_updates=false
nflow.db.workflowInstanceType.cacheSize=10000

0 comments on commit c5a7f07

Please sign in to comment.