From 9a54abe63be1ced3ca7aa48ad47035936e48ee60 Mon Sep 17 00:00:00 2001 From: y00314596 Date: Sat, 26 Mar 2022 15:24:52 +0800 Subject: [PATCH] add by yangqing3@huawei.com Signed-off-by: y00314596 --- update_lite/dupdate_posix/src/UpdateTest.cpp | 2 -- .../update_test/src/main/js/default/test/update.test.js | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/update_lite/dupdate_posix/src/UpdateTest.cpp b/update_lite/dupdate_posix/src/UpdateTest.cpp index 77a35ae24..34f4aa593 100755 --- a/update_lite/dupdate_posix/src/UpdateTest.cpp +++ b/update_lite/dupdate_posix/src/UpdateTest.cpp @@ -24,8 +24,6 @@ const int USE_HOS_PKG = 1; const int NOT_HOS_PKG = 0; const int ERR_PAK_FALG = 2; const int DATA_LENGTH = 190; -const int READ_LENGTH = 0; -const int ERR_LENGTH = 9; const int DATA_OFFSET = 0; using namespace std; diff --git a/updater/update_test/src/main/js/default/test/update.test.js b/updater/update_test/src/main/js/default/test/update.test.js index 8b38e9226..31de805d9 100644 --- a/updater/update_test/src/main/js/default/test/update.test.js +++ b/updater/update_test/src/main/js/default/test/update.test.js @@ -17,11 +17,11 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from ' import client from '@ohos.update'; let updater; -var param_value1 = 0; -var param_value2 = 0; -var expect_value = 0; +let param_value1 = 0; +let param_value2 = 0; +let expect_value = 0; -var updateState = { +let updateState = { UPDATE_STATE_INIT : 0, UPDATE_STATE_CHECK_VERSION_ON : 10, UPDATE_STATE_CHECK_VERSION_FAIL : 11, -- GitLab