add default lock timeout to tests

Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
pull/760/head
Ratan Rai Sur 5 years ago
parent 267fe0a642
commit aff6aa6065
  1. 4
      acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/privacy/PrivacyNode.java
  2. 4
      besu/src/test/java/org/hyperledger/besu/PrivacyReorgTest.java
  3. 4
      besu/src/test/java/org/hyperledger/besu/PrivacyTest.java
  4. 4
      besu/src/test/java/org/hyperledger/besu/RunnerTest.java

@ -65,6 +65,7 @@ public class PrivacyNode implements AutoCloseable {
private static final long CACHE_CAPACITY = 8388608;
private static final int MAX_BACKGROUND_COMPACTIONS = 4;
private static final int BACKGROUND_THREAD_COUNT = 4;
private static final int DEFAULT_LOCK_TIMEOUT = 1;
private final OrionTestHarness orion;
private final BesuNode besu;
@ -238,7 +239,8 @@ public class PrivacyNode implements AutoCloseable {
MAX_OPEN_FILES,
MAX_BACKGROUND_COMPACTIONS,
BACKGROUND_THREAD_COUNT,
CACHE_CAPACITY),
CACHE_CAPACITY,
DEFAULT_LOCK_TIMEOUT),
Arrays.asList(KeyValueSegmentIdentifier.values()),
RocksDBMetricsFactory.PRIVATE_ROCKS_DB_METRICS)))
.withCommonConfiguration(new BesuConfigurationImpl(dataLocation, dbLocation))

@ -85,6 +85,7 @@ public class PrivacyReorgTest {
private static final long CACHE_CAPACITY = 8388608;
private static final int MAX_BACKGROUND_COMPACTIONS = 4;
private static final int BACKGROUND_THREAD_COUNT = 4;
private static final int DEFAULT_LOCK_TIMEOUT = 1;
@Rule public final TemporaryFolder folder = new TemporaryFolder();
@ -397,7 +398,8 @@ public class PrivacyReorgTest {
MAX_OPEN_FILES,
MAX_BACKGROUND_COMPACTIONS,
BACKGROUND_THREAD_COUNT,
CACHE_CAPACITY),
CACHE_CAPACITY,
DEFAULT_LOCK_TIMEOUT),
Arrays.asList(KeyValueSegmentIdentifier.values()),
RocksDBMetricsFactory.PRIVATE_ROCKS_DB_METRICS)))
.withCommonConfiguration(new BesuConfigurationImpl(dataLocation, dbLocation))

@ -60,6 +60,7 @@ public class PrivacyTest {
private static final long CACHE_CAPACITY = 8388608;
private static final int MAX_BACKGROUND_COMPACTIONS = 4;
private static final int BACKGROUND_THREAD_COUNT = 4;
private static final int DEFAULT_LOCK_TIMEOUT = 1;
private final Vertx vertx = Vertx.vertx();
@Rule public final TemporaryFolder folder = new TemporaryFolder();
@ -135,7 +136,8 @@ public class PrivacyTest {
MAX_OPEN_FILES,
MAX_BACKGROUND_COMPACTIONS,
BACKGROUND_THREAD_COUNT,
CACHE_CAPACITY),
CACHE_CAPACITY,
DEFAULT_LOCK_TIMEOUT),
Arrays.asList(KeyValueSegmentIdentifier.values()),
RocksDBMetricsFactory.PRIVATE_ROCKS_DB_METRICS)))
.withCommonConfiguration(new BesuConfigurationImpl(dataDir, dbDir))

@ -97,6 +97,7 @@ public final class RunnerTest {
private static final long CACHE_CAPACITY = 8388608;
private static final int MAX_BACKGROUND_COMPACTIONS = 4;
private static final int BACKGROUND_THREAD_COUNT = 4;
private static final int DEFAULT_LOCK_TIMEOUT = 1;
private Vertx vertx;
@ -387,7 +388,8 @@ public final class RunnerTest {
MAX_OPEN_FILES,
MAX_BACKGROUND_COMPACTIONS,
BACKGROUND_THREAD_COUNT,
CACHE_CAPACITY),
CACHE_CAPACITY,
DEFAULT_LOCK_TIMEOUT),
Arrays.asList(KeyValueSegmentIdentifier.values()),
RocksDBMetricsFactory.PUBLIC_ROCKS_DB_METRICS))
.withCommonConfiguration(new BesuConfigurationImpl(dataDir, dbDir))

Loading…
Cancel
Save