From 9e59a9f489f5c953ebdb0e702a163da5d6cc10dd Mon Sep 17 00:00:00 2001 From: zhangyushuai Date: Mon, 8 Aug 2022 06:58:30 +0000 Subject: [PATCH] modified request build error Signed-off-by: zhangyushuai --- .../RequestTest_ets/entry/src/main/ets/test/Publicfunction.ets | 2 +- .../entry/src/main/ets/test/uploadCallbackXTSJsunitTest.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/request/RequestTest_ets/entry/src/main/ets/test/Publicfunction.ets b/request/RequestTest_ets/entry/src/main/ets/test/Publicfunction.ets index 20ab93843..14bb71640 100644 --- a/request/RequestTest_ets/entry/src/main/ets/test/Publicfunction.ets +++ b/request/RequestTest_ets/entry/src/main/ets/test/Publicfunction.ets @@ -113,7 +113,7 @@ function publicoff(Updatetask, Type){ } //remove公共方法 -function publicremove(Updatetask, Type){ +function publicremove(Updatetask){ return new Promise(function(resolve, reject) { Updatetask.remove((err,data) => { console.info("Testupdate publicremove =" + data); diff --git a/request/RequestTest_ets/entry/src/main/ets/test/uploadCallbackXTSJsunitTest.ets b/request/RequestTest_ets/entry/src/main/ets/test/uploadCallbackXTSJsunitTest.ets index 416e28a5d..1b76f47cd 100644 --- a/request/RequestTest_ets/entry/src/main/ets/test/uploadCallbackXTSJsunitTest.ets +++ b/request/RequestTest_ets/entry/src/main/ets/test/uploadCallbackXTSJsunitTest.ets @@ -108,7 +108,7 @@ export default function uploadRequestJsunitTest() { await pubfun.publicoffprogress(uploadTask, typeProgress).then((data) => { console.info("SwitchOffProgressCallback001 data" + JSON.stringify(data)); - expect(7).assertEqual(data.totalSize); + expect(7).assertEqual(data["totalSize"]); done(); }).catch((err) => { console.info("SwitchOffProgressCallback001 fail 2" + JSON.stringify(err)); -- GitLab