From b6d8c1c1b0df0d69afe3b68beacae6335308f8a5 Mon Sep 17 00:00:00 2001 From: q00313334 Date: Tue, 21 Jun 2022 16:43:31 +0800 Subject: [PATCH] quanli1@huawei.com Signed-off-by: q00313334 --- .../src/main/js/default/test/BluetoothBle.test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js b/communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js index 60acc0e71..20b63a4dd 100644 --- a/communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js +++ b/communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js @@ -685,7 +685,7 @@ describe('bluetoothhostTest', function() { desValue[0] = 11; let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', - descriptorUuid: '00001830-0000-1000-8000-00805F9B34FB', + descriptorUuid: '00002902-0000-1000-8000-00805F9B34FB', descriptorValue: arrayBuffer}; descriptors[0] = descriptor; let characteristics = []; @@ -700,7 +700,11 @@ describe('bluetoothhostTest', function() { isPrimary: true, characteristics: characteristics, includeServices: []}; let ret = gattServer.addService(service); console.info('[bluetooth_js] bluetooth addService ret : ' + ret); - expect(ret).assertEqual(false); + expect(ret).assertTrue(); + await sleep(3500); + let ret1=gattServer.removeService('00001810-0000-1000-8000-00805F9B34FB'); + console.info('[bluetooth_js]removeService ret:'+ret1); + expect(ret1).assertTrue(); done(); }) -- GitLab