Skip to content

Commit

Permalink
SPVBlockStoreTest: increase threshold for performanceTest() to 5 seconds
Browse files Browse the repository at this point in the history
This will hopefully reduce spurious test failures.

This is a backport of 63ed427.
  • Loading branch information
schildbach committed Jun 24, 2024
1 parent e68a0d0 commit b176f3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit b176f3a

Please sign in to comment.