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 20ab93843fce36355207d1e43cf1175fae5c40b3..14bb716407e0b273a7764c9e33cf53c6853052f0 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 416e28a5d31815808b12e84eccd5b1b361ffb979..1b76f47cda79c70d72b912c66c26649131c7daea 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));