diff --git a/module/VuFind/src/VuFindTest/Unit/MinkTestCase.php b/module/VuFind/src/VuFindTest/Unit/MinkTestCase.php index ac7494b465fc8015fcacb54e63d8391525ca8826..79c838f4a57d615f1fb4ce4a0afcf7c663465c83 100644 --- a/module/VuFind/src/VuFindTest/Unit/MinkTestCase.php +++ b/module/VuFind/src/VuFindTest/Unit/MinkTestCase.php @@ -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); } /**