Replace constant in tests
[MAILPOET-2367]
This commit is contained in:
committed by
Jack Kitterhing
parent
1bedf1fd1a
commit
910b62cd70
@@ -38,8 +38,8 @@ class SimpleWorkerTest extends \MailPoetTest {
|
||||
|
||||
function testItThrowsExceptionWhenExecutionLimitIsReached() {
|
||||
try {
|
||||
$worker = new MockSimpleWorker(
|
||||
microtime(true) - CronHelper::DAEMON_EXECUTION_LIMIT
|
||||
new MockSimpleWorker(
|
||||
microtime(true) - CronHelper::getDaemonExecutionLimit()
|
||||
);
|
||||
self::fail('Maximum execution time limit exception was not thrown.');
|
||||
} catch (\Exception $e) {
|
||||
|
Reference in New Issue
Block a user