未验证 提交 35e2ad27 编写于 作者: O openharmony_ci 提交者: Gitee

!6713 【communication】优化Bluetooth测试用例 同步monthly

Merge pull request !6713 from 权力/cherry-pick-1669447246
......@@ -413,12 +413,12 @@ describe('bluetoothBLETest1', function() {
characteristics:characteristics, includeServices:[]};
let ret = gattServer.addService(gattService);
console.info('[bluetooth_js] bluetooth addService null serviceUuid result : ' + ret);
expect(ret).assertTrue();
expect(ret).assertFalse();
await sleep(1000);
let ret1=gattServer.removeService('');
await sleep(1000);
console.info('[bluetooth_js]removeService ret:'+ret1);
expect(ret1).assertTrue();
expect(ret1).assertFalse();
done();
})
......@@ -451,12 +451,12 @@ describe('bluetoothBLETest1', function() {
characteristics:characteristics, includeServices:[]};
let ret = gattServer.addService(gattService);
console.info('[bluetooth_js] bluetooth addService invalid serviceUuid result : ' + ret);
expect(ret).assertTrue();
expect(ret).assertFalse();
await sleep(1000);
let ret1=gattServer.removeService('123@ad');
await sleep(1000);
console.info('[bluetooth_js]removeService ret:'+ret1);
expect(ret1).assertTrue();
expect(ret1).assertFalse();
done();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册