From dfe0d829651624e3104a29d59b2d8d7ba70f551a Mon Sep 17 00:00:00 2001 From: yanglifeng1217 Date: Tue, 25 Jul 2023 09:41:47 +0800 Subject: [PATCH] Signed-off-by: yanglifeng1217 --- .../main/ets/test/preferencesDataGroupIdCallback.test.ets | 4 ++-- .../main/ets/test/preferencesDataGroupIdPromise.test.ets | 6 +++--- .../ets/test/relationalStoreDataGroupIdCallback.test.ets | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdCallback.test.ets b/distributeddatamgr/preferencesdatagroupidtest/src/main/ets/test/preferencesDataGroupIdCallback.test.ets index 7df725d55..34b7d3219 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 676be2461..205a833b0 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 358e54746..1368ed203 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) { -- GitLab