提交 a7aaadb6 编写于 作者: Y yanglifeng1217

<modified>

Signed-off-by: Nyanglifeng1217 <yanglifeng5@huawei.com>
上级 57a5fd41
......@@ -343,7 +343,7 @@ describe('rdbStoreDistributedTest', function () {
*/
it('testRdbStoreDistributed0012', 0, async function (done) {
console.info(TAG + "************* testRdbStoreDistributed0012 start *************");
rdbStore.on("dataChange", (device) => {
rdbStore.on("dataChange", dataRdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, (device) => {
console.info(TAG + device + " dataChange");
});
console.info(TAG + "on dataChange success");
......@@ -359,7 +359,7 @@ describe('rdbStoreDistributedTest', function () {
*/
it('testRdbStoreDistributed0013', 0, async function (done) {
console.info(TAG + "************* testRdbStoreDistributed0013 start *************");
rdbStore.off("dataChange", (device) => {
rdbStore.off("dataChange", dataRdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, (device) => {
console.info(TAG + device + " dataChange");
});
console.info(TAG + "off dataChange success");
......
......@@ -173,9 +173,12 @@ describe('rdbEncryptTest', function () {
context = ability_featureAbility.getContext()
rdbStore = await CreatRdbStore(context, STORE_CONFIG_ENCRYPT)
rdbStore = null
try {
rdbStore = await CreatRdbStore(context, STORE_CONFIG_WRONG)
expect(rdbStore).assertNull
} catch (err) {
console.info(TAG + `catch err: ` + err)
expect(err).assertTrue
}
done()
console.info(TAG + "************* RdbEncryptTest_0040 end *************")
})
......
......@@ -345,7 +345,7 @@ describe('relationalStoreDistributedTest', function () {
*/
it('testRdbStoreDistributed0012', 0, async function (done) {
console.info(TAG + "************* testRdbStoreDistributed0012 start *************");
rdbStore.on("dataChange", (device) => {
rdbStore.on("dataChange", data_Rdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, (device) => {
console.info(TAG + device + " dataChange");
});
console.info(TAG + "on dataChange success");
......@@ -361,7 +361,7 @@ describe('relationalStoreDistributedTest', function () {
*/
it('testRdbStoreDistributed0013', 0, async function (done) {
console.info(TAG + "************* testRdbStoreDistributed0013 start *************");
rdbStore.off("dataChange", (device) => {
rdbStore.off("dataChange", data_Rdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, (device) => {
console.info(TAG + device + " dataChange");
});
console.info(TAG + "off dataChange success");
......
......@@ -176,8 +176,12 @@ describe('relationalStoreEncryptTest', function () {
context = ability_featureAbility.getContext()
rdbStore = await CreatRdbStore(context, STORE_CONFIG_ENCRYPT)
rdbStore = null
try {
rdbStore = await CreatRdbStore(context, STORE_CONFIG_WRONG)
expect(rdbStore).assertNull
} catch (err) {
console.info(TAG + `catch err: err.code= ${err.code}, message = ${err.message}`)
expect(err.code === 14800000).assertTrue
}
done()
console.info(TAG + "************* RdbEncryptTest_0040 end *************")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册