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

<modified>

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