diff --git a/update_lite/dupdate_posix/src/UpdateTest.cpp b/update_lite/dupdate_posix/src/UpdateTest.cpp index 77a35ae2412e3bd38fe9139d6c09b1e864db2560..34f4aa59364cddc507ca2995b9a712159a3c105e 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 8b38e922610b360157dc202bff5535d915fd512a..31de805d9423e9b162dc89a48c172bfdf7978655 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,