From b176f3ad4828bace866394ab4ea0906ee52e8bac Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Fri, 10 Mar 2023 14:50:03 +0100 Subject: [PATCH] SPVBlockStoreTest: increase threshold for performanceTest() to 5 seconds This will hopefully reduce spurious test failures. This is a backport of 63ed4275ac3a68a27199f460ceabffb58a504fb3. --- core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java b/core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java index 16551c2ac71..6e13997d4d8 100644 --- a/core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java +++ b/core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java @@ -140,7 +140,7 @@ public void performanceTest() throws BlockStoreException { // On slow machines, this test could fail. Then either add @Ignore or adapt the threshold and please report to // us. final int ITERATIONS = 100000; - final long THRESHOLD_MS = 2000; + final long THRESHOLD_MS = 5000; SPVBlockStore store = new SPVBlockStore(UNITTEST, blockStoreFile); Stopwatch watch = Stopwatch.createStarted(); for (int i = 0; i < ITERATIONS; i++) {