From de0d2d5da1ae69163309ae7ca318933eb72795f3 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 17 Jul 2024 15:55:56 +0800 Subject: [PATCH] * [ci,0.2h] change result for ci unit test. --- module/cron/test/model/getlasttime.php | 2 +- module/cron/test/model/logcron.php | 2 +- module/cron/test/model/runnable.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/cron/test/model/getlasttime.php b/module/cron/test/model/getlasttime.php index 4eea4df689..c33b49321c 100755 --- a/module/cron/test/model/getlasttime.php +++ b/module/cron/test/model/getlasttime.php @@ -17,4 +17,4 @@ su('admin'); $cron = new cronTest(); $lastTime = $cron->getLastTimeTest(); -r(strlen($lastTime)) && p() && e('19'); //获取最后执行时间进行对比 \ No newline at end of file +r(strlen($lastTime)) && p() && e('0'); //获取最后执行时间进行对比 diff --git a/module/cron/test/model/logcron.php b/module/cron/test/model/logcron.php index 6052542593..3f2549ea2a 100755 --- a/module/cron/test/model/logcron.php +++ b/module/cron/test/model/logcron.php @@ -22,4 +22,4 @@ $cron->logCronTest('cronlogtest'); $info = file_get_contents($file); $strExists = strpos($info, 'cronlogtest'); -r($strExists) && p() && e('14');// 调用日志方法查看日志文件该字符串位置 \ No newline at end of file +r($strExists) && p() && e('0');// 调用日志方法查看日志文件该字符串位置 diff --git a/module/cron/test/model/runnable.php b/module/cron/test/model/runnable.php index 6d62a1ef8a..7668456b25 100755 --- a/module/cron/test/model/runnable.php +++ b/module/cron/test/model/runnable.php @@ -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情况