未验证 提交 4c8bc6cc 编写于 作者: O openharmony_ci 提交者: Gitee

!8375 【XTS】【communication】优化bt脚本

Merge pull request !8375 from 权力/myfeature
......@@ -200,7 +200,7 @@ describe('bluetoothBLETest', function() {
expect(ret).assertTrue();
await gattClient.getDeviceName().then((data) => {
console.info('[bluetooth_js] device name' + JSON.stringify(data))
expect(data).assertNull();
expect(true).assertEqual(data != null);
done();
}).catch(err => {
console.error('bluetooth getDeviceName has error: '+ err);
......@@ -229,7 +229,7 @@ describe('bluetoothBLETest', function() {
expect(ret).assertTrue();
gattClient.getDeviceName((err, data)=> {
console.info('[bluetooth_js]getname value:'+JSON.stringify(data));
expect(data).assertNull();
expect(true).assertEqual(data != null);
let disconnect = gattClient.disconnect();
console.info('[bluetooth_js] gatt getname1 disconnect:' + disconnect);
expect(disconnect).assertEqual(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册