提交 6084b606 编写于 作者: weixin_47267244's avatar weixin_47267244

修复测试

上级 b99d8327
......@@ -329,7 +329,7 @@ class CronCalculatorTest extends BaseTest
$beginTime = strtotime('2018-06-21 12:34:56');
// 每天 0 点执行一次
$lastTime = $cronCalculator->getNextTickTime($beginTime, [
new CronRule(['hour' => '0', 'minute' => '0', 'second' => '0', 'delayMin' => 1, 'delayMin' => 3]),
new CronRule(['hour' => '0', 'minute' => '0', 'second' => '0', 'delayMin' => 1, 'delayMax' => 3]),
]);
$this->assertTrue($lastTime > strtotime('2018-06-22 00:00:00'));
$this->assertTrue($lastTime <= strtotime('2018-06-22 00:00:03'));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册