From d5b2a263e6d4c893c6ec3fb99b36110630da6529 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 6 Oct 2025 10:18:49 +0200 Subject: speed up tests (#555) * faster FileSystemTraversal test * faster jobqueue test * faster NamedEvent test * faster cache tests * faster basic http tests * faster blockstore test * faster cache store tests * faster compactcas tests * more responsive zenserver launch * tweak worker pool sizes in tests --- src/zencore/jobqueue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/zencore/jobqueue.cpp') diff --git a/src/zencore/jobqueue.cpp b/src/zencore/jobqueue.cpp index 4aa8c113e..bd391909d 100644 --- a/src/zencore/jobqueue.cpp +++ b/src/zencore/jobqueue.cpp @@ -465,7 +465,7 @@ TEST_CASE("JobQueue") std::unique_ptr Queue(MakeJobQueue(2, "queue")); WorkerThreadPool Pool(4); Latch JobsLatch(1); - for (uint32_t I = 0; I < 100; I++) + for (uint32_t I = 0; I < 32; I++) { JobsLatch.AddCount(1); Pool.ScheduleWork( @@ -479,7 +479,7 @@ TEST_CASE("JobQueue") return; } Context.ReportProgress("going to sleep", "", 100, 100); - Sleep(10); + Sleep(5); if (Context.IsCancelled()) { return; @@ -489,7 +489,7 @@ TEST_CASE("JobQueue") { zen::ThrowSystemError(8, fmt::format("Job {} forced to fail", I)); } - Sleep(10); + Sleep(5); if (Context.IsCancelled()) { return; @@ -575,7 +575,7 @@ TEST_CASE("JobQueue") RemainingJobs.size(), PendingCount, RemainingJobs.size() - PendingCount); - Sleep(100); + Sleep(5); } JobsLatch.Wait(); } -- cgit v1.2.3