summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/distributortest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/distributor/distributortest.cpp')
-rw-r--r--storage/src/tests/distributor/distributortest.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/storage/src/tests/distributor/distributortest.cpp b/storage/src/tests/distributor/distributortest.cpp
index 454db5d2404..8f308ec7984 100644
--- a/storage/src/tests/distributor/distributortest.cpp
+++ b/storage/src/tests/distributor/distributortest.cpp
@@ -396,17 +396,12 @@ TEST_F(DistributorTest, tick_processes_status_requests) {
StatusRequestThread thread(distributor_status_delegate());
FakeClock clock;
ThreadPoolImpl pool(clock);
-
- uint64_t tickWaitMs = 5;
- uint64_t tickMaxProcessTime = 5000;
int ticksBeforeWait = 1;
- framework::Thread::UP tp(pool.startThread(
- thread, "statustest", tickWaitMs, tickMaxProcessTime, ticksBeforeWait));
+ framework::Thread::UP tp(pool.startThread(thread, "statustest", 5ms, 5s, ticksBeforeWait));
while (true) {
std::this_thread::sleep_for(1ms);
- framework::TickingLockGuard guard(
- distributor_thread_pool().freezeCriticalTicks());
+ framework::TickingLockGuard guard(distributor_thread_pool().freezeCriticalTicks());
if (!distributor_status_todos().empty()) {
break;
}