Skip to content
Snippets Groups Projects
Commit 8e468d20 authored by Chris Hallberg's avatar Chris Hallberg Committed by Robert Lange
Browse files

Allow for snooze multipliers less than 1. (#1564)

parent 8b85857d
No related merge requests found
......@@ -129,11 +129,11 @@ abstract class MinkTestCase extends DbTestCase
*/
protected function snooze($secs = 1)
{
$snoozeMultiplier = intval(getenv('VUFIND_SNOOZE_MULTIPLIER'));
if ($snoozeMultiplier < 1) {
$snoozeMultiplier = floatval(getenv('VUFIND_SNOOZE_MULTIPLIER'));
if ($snoozeMultiplier <= 0) {
$snoozeMultiplier = 1;
}
sleep($secs * $snoozeMultiplier);
usleep(1000000 * $secs * $snoozeMultiplier);
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment