diff --git a/tests/vault/gear/scheduler-service-test.cpp b/tests/vault/gear/scheduler-service-test.cpp index 14c4f977a..80b3d406f 100644 --- a/tests/vault/gear/scheduler-service-test.cpp +++ b/tests/vault/gear/scheduler-service-test.cpp @@ -401,7 +401,7 @@ namespace test { CHECK (activity::PASS == res); // instruction to check back once pullWork(); CHECK (activity::WAIT == res); // but next call will send this thread to sleep right away - CHECK (delay_us < 40); + CHECK (delay_us < 50); cout << "follow-up with some distance => follow-up delay"< + allocNeeded (uint scaleStep) const { auto cnt = roundsNeeded(scaleStep); auto siz = max (scaleStep * sizeBase, 1u); @@ -1401,13 +1408,15 @@ namespace test { causeMemProcessLoad (uint scaleStep) { auto [siz,round] = allocNeeded (scaleStep); - lib::UninitialisedDynBlock memBlock{siz}; + lib::UninitialisedDynBlock memBlock; + size_t* mem = externalBuff? externalBuff + : memBlock.allocate (siz); Sink sink; - *memBlock.front() = sink+1; + *mem = sink+1; for ( ; 0 < round; --round) - for (size_t i=0; i