From 855b6002687d1cda91f5c0e6726d9bb5f09684cc Mon Sep 17 00:00:00 2001 From: CalDescent Date: Fri, 30 Jul 2021 09:02:15 +0100 Subject: [PATCH] testBlockHeightSpeed() reduced from 30k to 10k blocks. This was intermittently failing on github and I suspect it may have been hitting memory limits. --- src/test/java/org/qortal/test/RepositoryTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/qortal/test/RepositoryTests.java b/src/test/java/org/qortal/test/RepositoryTests.java index 434e03f0..91dd03c2 100644 --- a/src/test/java/org/qortal/test/RepositoryTests.java +++ b/src/test/java/org/qortal/test/RepositoryTests.java @@ -261,11 +261,11 @@ public class RepositoryTests extends Common { /** Check that the sub-query used to fetch highest block height is optimized by HSQLDB. */ @Test public void testBlockHeightSpeed() throws DataException, SQLException { - final int mintBlockCount = 30000; + final int mintBlockCount = 10000; try (final Repository repository = RepositoryManager.getRepository()) { // Mint some blocks - System.out.println(String.format("Minting %d test blocks - should take approx. 30 seconds...", mintBlockCount)); + System.out.println(String.format("Minting %d test blocks - should take approx. 10 seconds...", mintBlockCount)); long beforeBigMint = System.currentTimeMillis(); for (int i = 0; i < mintBlockCount; ++i)