提交 dfe0d829 编写于 作者: Y yanglifeng1217

<modified>

Signed-off-by: Nyanglifeng1217 <yanglifeng5@huawei.com>
上级 6cf2aa9d
......@@ -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();
}
})
......
/*
* 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();
}
})
......
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册