From 42e95800fb4f3a9d3c8a6f991e0c64cdee7219b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=B7=E5=BA=B7?= Date: Wed, 1 Jun 2022 14:59:27 +0800 Subject: [PATCH] Modify use case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖康康 --- .../src/main/js/default/test/BackgroundTaskMagrJs.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/BackgroundTaskMagrJs.test.js b/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/BackgroundTaskMagrJs.test.js index c130b4e02..d006430c8 100644 --- a/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/BackgroundTaskMagrJs.test.js +++ b/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/BackgroundTaskMagrJs.test.js @@ -144,7 +144,7 @@ describe("TransientTaskJsTest", function () { } backgroundTaskManager.getRemainingDelayTime(info.requestId, (err, res) => { - if (err.data === 0) { + if (!err) { console.info('TransientTaskJsTest004 backgroundTaskManager success, delaytime:' + res); expect(true).assertTrue(); -- GitLab