提交 e5172992 编写于 作者: W wangxiaomeng1357

<wangxiaomeng9@huawei.com>

Signed-off-by: Nwangxiaomeng1357 <wangxiaomeng9@huawei.com>
上级 b360ddb6
...@@ -2023,17 +2023,17 @@ describe('SingleKvStorePromiseTest', function () { ...@@ -2023,17 +2023,17 @@ describe('SingleKvStorePromiseTest', function () {
* @tc.type: FUNC * @tc.type: FUNC
* @tc.name Test Js Api SingleKvStoreCommit testcase 001 * @tc.name Test Js Api SingleKvStoreCommit testcase 001
*/ */
it('SUB_DDM_DKV_SINGLEKVSTORE_STARTTRANSACTION_PROMISE_0100', 0, async function (done) { it('SUB_DDM_DKV_SINGLEKVSTORE_COMMIT_PROMISE_0100', 0, async function (done) {
console.info('SUB_DDM_DKV_SINGLEKVSTORE_STARTTRANSACTION_PROMISE_0100'); console.info('SUB_DDM_DKV_SINGLEKVSTORE_COMMIT_PROMISE_0100');
try { try {
await kvStore.commit(1).then(async (err) => { await kvStore.commit(1).then(async (err) => {
console.info('SUB_DDM_DKV_SINGLEKVSTORE_STARTTRANSACTION_PROMISE_0100 commit success'); console.info('SUB_DDM_DKV_SINGLEKVSTORE_COMMIT_PROMISE_0100 commit success');
expect(null).assertFail(); expect(null).assertFail();
}).catch((err) => { }).catch((err) => {
console.error('SUB_DDM_DKV_SINGLEKVSTORE_STARTTRANSACTION_PROMISE_0100 commit fail ' + `, error code is ${err.code}, message is ${err.message}`); console.error('SUB_DDM_DKV_SINGLEKVSTORE_COMMIT_PROMISE_0100 commit fail ' + `, error code is ${err.code}, message is ${err.message}`);
}); });
}catch(e) { }catch(e) {
console.error('SUB_DDM_DKV_SINGLEKVSTORE_STARTTRANSACTION_PROMISE_0100 e ' + `, error code is ${e.code}, message is ${e.message}`); console.error('SUB_DDM_DKV_SINGLEKVSTORE_COMMIT_PROMISE_0100 e ' + `, error code is ${e.code}, message is ${e.message}`);
} }
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册