提交 9b630d71 编写于 作者: Y yanglifeng1217

<modified>

Signed-off-by: Nyanglifeng1217 <yanglifeng5@huawei.com>
上级 bcb0a8e2
...@@ -63,6 +63,7 @@ try { ...@@ -63,6 +63,7 @@ try {
} }
function storeObserver(devices) { function storeObserver(devices) {
console.info(TAG + devices + " dataChange"); console.info(TAG + devices + " dataChange");
expect(devices).assertEqual(null)
} }
export default function rdbStoreDistributedTest() { export default function rdbStoreDistributedTest() {
...@@ -365,8 +366,8 @@ describe('rdbStoreDistributedTest', function () { ...@@ -365,8 +366,8 @@ describe('rdbStoreDistributedTest', function () {
it('testRdbStoreDistributed0013', 0, function (done) { it('testRdbStoreDistributed0013', 0, function (done) {
console.info(TAG + "************* testRdbStoreDistributed0013 start *************"); console.info(TAG + "************* testRdbStoreDistributed0013 start *************");
try{ try{
let off = rdbStore.on("dataChange", dataRdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver); rdbStore.off("dataChange", dataRdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver);
console.info(TAG + "off dataChange success " + off); console.info(TAG + "off dataChange success ");
}catch(err){ }catch(err){
console.info(TAG + "off dataChange " + err); console.info(TAG + "off dataChange " + err);
expect(err !== null).assertFalse(); expect(err !== null).assertFalse();
......
...@@ -66,6 +66,7 @@ try { ...@@ -66,6 +66,7 @@ try {
function storeObserver(devices) { function storeObserver(devices) {
console.info(TAG + devices + " dataChange"); console.info(TAG + devices + " dataChange");
expect(devices).assertEqual(null)
} }
export default function relationalStoreDistributedTest() { export default function relationalStoreDistributedTest() {
...@@ -368,8 +369,8 @@ describe('relationalStoreDistributedTest', function () { ...@@ -368,8 +369,8 @@ describe('relationalStoreDistributedTest', function () {
it('testRdbStoreDistributed0013', 0, function (done) { it('testRdbStoreDistributed0013', 0, function (done) {
console.info(TAG + "************* testRdbStoreDistributed0013 start *************"); console.info(TAG + "************* testRdbStoreDistributed0013 start *************");
try{ try{
let off = rdbStore.on("dataChange", data_Rdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver); rdbStore.off("dataChange", data_Rdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver);
console.info(TAG + "off dataChange success " + off); console.info(TAG + "off dataChange success ");
}catch(err){ }catch(err){
console.info(TAG + "off dataChange " + err); console.info(TAG + "off dataChange " + err);
expect(err !== null).assertFalse(); expect(err !== null).assertFalse();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册