From 98b85933852e1354a7df93dd50bd1067b6e38c7b Mon Sep 17 00:00:00 2001 From: Fran Date: Sun, 8 Oct 2023 22:27:52 +0200 Subject: [PATCH] timers --- src/test/java/com/tomfran/lsm/tree/LSMTreeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/tomfran/lsm/tree/LSMTreeTest.java b/src/test/java/com/tomfran/lsm/tree/LSMTreeTest.java index 2cc0a1a..4c5ff7f 100644 --- a/src/test/java/com/tomfran/lsm/tree/LSMTreeTest.java +++ b/src/test/java/com/tomfran/lsm/tree/LSMTreeTest.java @@ -23,7 +23,7 @@ public void writeFlush() throws InterruptedException { IntStream.range(0, maxSize + 2).forEach(i -> tree.add(getRandomPair())); - Thread.sleep(2000); + Thread.sleep(500); assert tree.mutableMemtable.size() >= 1 : "mutable memtable size is " + tree.mutableMemtable.size(); assert !tree.tables.isEmpty() : "table is null"; @@ -44,7 +44,7 @@ public void writeFlow() throws InterruptedException { }); - Thread.sleep(2000); + Thread.sleep(500); for (var it : items.entrySet()) assert compare(tree.get(it.getKey()), it.getValue()) == 0;