From 7f170f0f8e9cd54e026c8a801f89f2008c323369 Mon Sep 17 00:00:00 2001 From: quanli Date: Sat, 26 Nov 2022 05:47:43 +0800 Subject: [PATCH] quanli1@huawei.com Signed-off-by: quanli --- .../bluetooth_ble/src/main/js/test/BleService.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/communication/bluetooth_ble/src/main/js/test/BleService.test.js b/communication/bluetooth_ble/src/main/js/test/BleService.test.js index 633b7082f..79d7eb948 100644 --- a/communication/bluetooth_ble/src/main/js/test/BleService.test.js +++ b/communication/bluetooth_ble/src/main/js/test/BleService.test.js @@ -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(); }) -- GitLab