From e5172992a8ceab44658982ac77e18c0c94071aa5 Mon Sep 17 00:00:00 2001 From: wangxiaomeng1357 Date: Thu, 17 Nov 2022 17:03:06 +0800 Subject: [PATCH] Signed-off-by: wangxiaomeng1357 --- .../src/main/js/test/SingleKvStoreKVPromiseJsTest.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/SingleKvStoreKVPromiseJsTest.js b/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/SingleKvStoreKVPromiseJsTest.js index 258a7f423..6905f774a 100644 --- a/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/SingleKvStoreKVPromiseJsTest.js +++ b/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/SingleKvStoreKVPromiseJsTest.js @@ -2023,17 +2023,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.type: FUNC * @tc.name Test Js Api SingleKvStoreCommit testcase 001 */ - it('SUB_DDM_DKV_SINGLEKVSTORE_STARTTRANSACTION_PROMISE_0100', 0, async function (done) { - console.info('SUB_DDM_DKV_SINGLEKVSTORE_STARTTRANSACTION_PROMISE_0100'); + it('SUB_DDM_DKV_SINGLEKVSTORE_COMMIT_PROMISE_0100', 0, async function (done) { + console.info('SUB_DDM_DKV_SINGLEKVSTORE_COMMIT_PROMISE_0100'); try { 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(); }).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) { - 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(); }) -- GitLab