Index executors: Use directExecutor for negative thread values

This will make it easier to test index-related logic in tests. We still
use 0 as a default way of setting the JVM threads.

Change-Id: If186a23ee4e79c49306bf9f286a24841d99e6531
This commit is contained in:
Patrick Hiesel
2018-07-04 10:54:26 +02:00
parent 15e6a73d94
commit bdbee9cf8e
3 changed files with 16 additions and 11 deletions

View File

@@ -397,6 +397,8 @@ public abstract class AbstractDaemonTest {
baseConfig.setString("sshd", null, "listenAddress", "off");
}
baseConfig.setInt("index", null, "batchThreads", -1);
baseConfig.setInt("receive", null, "changeUpdateThreads", 4);
Module module = createModule();
if (classDesc.equals(methodDesc) && !classDesc.sandboxed() && !methodDesc.sandboxed()) {