From 153634edf0e6e71e22b00fb8dfffac5bcbc2ba19 Mon Sep 17 00:00:00 2001 From: openharmony_ci <120357966@qq.com> Date: Tue, 6 Jun 2023 15:04:50 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!8920=20?= =?UTF-8?q?:=20=E3=80=90xts=5Facts=E3=80=91=E3=80=90master=E3=80=91relatio?= =?UTF-8?q?nalStoreTest=20=E5=A2=9E=E5=8A=A0=E7=94=A8=E4=BE=8B'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/test/RelationalStoreJsunit.test.js | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreJsunit.test.js b/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreJsunit.test.js index 9cc9f2734..995215488 100644 --- a/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreJsunit.test.js +++ b/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreJsunit.test.js @@ -313,38 +313,5 @@ describe('relationalStoreTest', function () { console.info(TAG + "************* SUB_DDM_RelationalStore_Version_0020 end *************"); }) - - /** - * @tc.number SUB_DDM_RelationalStore_Different_Version_0010 - * @tc.name Get relational store version test - * @tc.desc relational version - */ - it('SUB_DDM_RelationalStore_Different_Version_0010', 0, async function (done) { - console.info(TAG + "************* SUB_DDM_RelationalStore_Different_Version_0010 start *************"); - const STORE_CONFIGS2 = { - name: "rdbstore.db", - securityLevel: data_Rdb.SecurityLevel.S2 - }; - let store = await data_Rdb.getRdbStore(context, STORE_CONFIG); - console.info(`SUB_DDM_RelationalStore_Different_Version_0010 S1 Get RdbStore successfully.`); - try{ - let promise = data_Rdb.getRdbStore(context, STORE_CONFIGS2); - await promise.then(async (rdbStore) => { - store = rdbStore; - console.info(`SUB_DDM_RelationalStore_Different_Version_0010 Get RdbStore successfully.`); - expect().assertFail(); - }).catch((err) => { - console.error(`SUB_DDM_RelationalStore_Different_Version_0010 Get RdbStore failed, code is ${err.code},message is ${err.message}`); - expect(err.code).assertEqual(14800000); - }) - }catch(error){ - console.error(`SUB_DDM_RelationalStore_Different_Version_0010 Get RdbStore failed error, code is ${error.code},message is ${error.message}`); - expect().assertFail(); - } - await data_Rdb.deleteRdbStore(context, STORE_CONFIG.name); - await data_Rdb.deleteRdbStore(context, STORE_CONFIGS2.name); - done(); - console.info(TAG + "************* SUB_DDM_RelationalStore_Different_Version_0010 end *************"); - }) console.info(TAG + "*************Unit Test End*************"); })} -- GitLab