From 49ddf76a5d45e78cc15b60c1eeb86f40edcc71c8 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Thu, 20 Jul 2017 14:18:26 -0400 Subject: [PATCH] Reduce stress test impact --- .../ca/uhn/fhir/jpa/stresstest/StressTestDstu3Test.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/stresstest/StressTestDstu3Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/stresstest/StressTestDstu3Test.java index 6949380e8d5..2b8a976e045 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/stresstest/StressTestDstu3Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/stresstest/StressTestDstu3Test.java @@ -106,12 +106,12 @@ public class StressTestDstu3Test extends BaseResourceProviderDstu3Test { List tasks = Lists.newArrayList(); try { - for (int threadIndex = 0; threadIndex < 8; threadIndex++) { + for (int threadIndex = 0; threadIndex < 5; threadIndex++) { SearchTask task = new SearchTask(); tasks.add(task); task.start(); } - for (int threadIndex = 0; threadIndex < 8; threadIndex++) { + for (int threadIndex = 0; threadIndex < 5; threadIndex++) { CreateTask task = new CreateTask(); tasks.add(task); task.start(); @@ -165,7 +165,7 @@ public class StressTestDstu3Test extends BaseResourceProviderDstu3Test { @Override public void run() { CloseableHttpResponse getResp = null; - for (int i = 0; i < 20; i++) { + for (int i = 0; i < 10; i++) { try { Bundle respBundle;