From 5295c9618cbae2bb937e188c072f66a77d793eb5 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 6 Nov 2023 15:55:39 +0100 Subject: gc v2 tests (#512) * set MaxBlockCount at init * properly calculate total size * basic blockstore compact blocks test * correct detection of block swap * Use one implementation for CreateRandomBlob * reduce some data sets to increase speed of tests * reduce test time * rename BlockStoreCompactState::AddBlock -> BlockStoreCompactState::IncludeBlock --- src/zencore/thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/zencore/thread.cpp') diff --git a/src/zencore/thread.cpp b/src/zencore/thread.cpp index e25ef7460..1f1b1b8f5 100644 --- a/src/zencore/thread.cpp +++ b/src/zencore/thread.cpp @@ -1209,7 +1209,7 @@ TEST_CASE("NamedEvent") // Timeout test for (uint32_t i = 0; i < 8; ++i) { - bool bEventSet = TestEvent.Wait(100); + bool bEventSet = TestEvent.Wait(10); CHECK(!bEventSet); } @@ -1219,13 +1219,13 @@ TEST_CASE("NamedEvent") ReadyEvent.Set(); NamedEvent TestEvent(Name); - TestEvent.Wait(1000); + TestEvent.Wait(100); }); NamedEvent ReadyEvent(Name + "_ready"); ReadyEvent.Wait(); - zen::Sleep(500); + zen::Sleep(50); TestEvent.Set(); Waiter.join(); -- cgit v1.2.3