diff --git a/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdCallback.test.ets b/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdCallback.test.ets index 7df725d55d9f785af2f3cf30925e7d58ac8d7fd9..34b7d32195e5d298b10d45ee26824525eada87fe 100644 --- a/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdCallback.test.ets +++ b/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdCallback.test.ets @@ -102,7 +102,7 @@ export default function preferencesDataGroupIdCallback() { }) } catch (errInfo) { console.error(TAG, `failed, code is ${errInfo.code},message is ${errInfo.message}`); - expect(errInfo.code).assertEqual('14801002'); + expect(errInfo.code).assertEqual('15501002'); done(); } }) @@ -218,7 +218,7 @@ export default function preferencesDataGroupIdCallback() { }) } catch (errInfo) { console.error(TAG, `failed, code is ${errInfo.code},message is ${errInfo.message}`); - expect(errInfo.code).assertEqual('14801002'); + expect(errInfo.code).assertEqual('15501002'); done(); } }) diff --git a/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdPromise.test.ets b/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdPromise.test.ets index 676be246125b83bfd17c58a60c64424af270e6e9..205a833b04927de15cf1b522e5eb7e93c723a7c1 100644 --- a/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdPromise.test.ets +++ b/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdPromise.test.ets @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Huawei Device Co., Ltd. + * Copyright (C) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -127,7 +127,7 @@ export default function preferencesDataGroupIdPromise() { }) }catch(errInfo){ console.error(TAG, `failed, code is ${errInfo.code},message is ${errInfo.message}`); - expect(errInfo.code).assertEqual('14801002'); + expect(errInfo.code).assertEqual('15501002'); done(); } }) @@ -235,7 +235,7 @@ export default function preferencesDataGroupIdPromise() { }) }catch(errInfo){ console.error(TAG, `failed, code is ${errInfo.code},message is ${errInfo.message}`); - expect(errInfo.code).assertEqual('14801002'); + expect(errInfo.code).assertEqual('15501002'); done(); } }) diff --git a/distributeddatamgr/relationalstoredatagroupidtest/src/main/ets/test/relationalStoreDataGroupIdCallback.test.ets b/distributeddatamgr/relationalstoredatagroupidtest/src/main/ets/test/relationalStoreDataGroupIdCallback.test.ets index 358e547463e731c7f4db7bfdcc73ba791f2b6c7a..1368ed203de6b4ed3aeec2934c7de039a024b4b3 100644 --- a/distributeddatamgr/relationalstoredatagroupidtest/src/main/ets/test/relationalStoreDataGroupIdCallback.test.ets +++ b/distributeddatamgr/relationalstoredatagroupidtest/src/main/ets/test/relationalStoreDataGroupIdCallback.test.ets @@ -65,7 +65,7 @@ export default function relationalStoreDataGroupIdCallback() { try { relationalStore.getRdbStore(globalThis.abilityContext, STORE_CONFIG, async function (err, rdbStore) { console.info(TAG, `Get RdbStore successfully.`); - expect(err !== null && rdbStore !== null).assertFail(); + expect().assertFail(); done(); await rdbStore.executeSql(CREATE_TABLE_TEST); relationalStore.deleteRdbStore(globalThis.abilityContext, STORE_CONFIG, function (error) {