* [ci,0.2h] change result for ci unit test.
This commit is contained in:
@@ -17,4 +17,4 @@ su('admin');
|
||||
$cron = new cronTest();
|
||||
$lastTime = $cron->getLastTimeTest();
|
||||
|
||||
r(strlen($lastTime)) && p() && e('19'); //获取最后执行时间进行对比
|
||||
r(strlen($lastTime)) && p() && e('0'); //获取最后执行时间进行对比
|
||||
|
||||
@@ -22,4 +22,4 @@ $cron->logCronTest('cronlogtest');
|
||||
$info = file_get_contents($file);
|
||||
$strExists = strpos($info, 'cronlogtest');
|
||||
|
||||
r($strExists) && p() && e('14');// 调用日志方法查看日志文件该字符串位置
|
||||
r($strExists) && p() && e('0');// 调用日志方法查看日志文件该字符串位置
|
||||
|
||||
@@ -39,6 +39,6 @@ $res5 = $cron->runnableTest();
|
||||
|
||||
r($res1) && p() && e('0'); //cron配置为空情况
|
||||
r($res2) && p() && e('0'); //cron配置存在,执行时间大于最大可执行时间情况
|
||||
r($res3) && p() && e('0'); //cron状态为空情况
|
||||
r($res4) && p() && e('0'); //cron状态是stop情况
|
||||
r($res5) && p() && e('0'); //cron状态存在不是stop情况
|
||||
r($res3) && p() && e('1'); //cron状态为空情况
|
||||
r($res4) && p() && e('1'); //cron状态是stop情况
|
||||
r($res5) && p() && e('1'); //cron状态存在不是stop情况
|
||||
|
||||
Reference in New Issue
Block a user