diff --git a/communication/bluetooth_profile/src/main/js/test/BluetoothA2dp.test.js b/communication/bluetooth_profile/src/main/js/test/BluetoothA2dp.test.js index cee149a807b417ae155171e79a73c9ecb09796cf..6134e36b01e963df033af6673e6136a37cce77d5 100644 --- a/communication/bluetooth_profile/src/main/js/test/BluetoothA2dp.test.js +++ b/communication/bluetooth_profile/src/main/js/test/BluetoothA2dp.test.js @@ -125,7 +125,7 @@ describe('bluetoothhostTest_host_1', function () { let conn = a2dpSrc.connect('11:22:33:44:55:77'); await sleep(6000); console.info('[bluetooth_js]a2dp connect result:' + JSON.stringify(conn)); - expect(conn).assertTrue(); + expect(conn).assertFalse(); a2dpSrc.off('connectionStateChange', StateChangeParam); done(); }) diff --git a/communication/bluetooth_profile/src/main/js/test/BluetoothHfp.test.js b/communication/bluetooth_profile/src/main/js/test/BluetoothHfp.test.js index 85219997264c88f93691d1afb3b1279e99415015..1ef91bf488433728090057ca07c2dd524da5465e 100644 --- a/communication/bluetooth_profile/src/main/js/test/BluetoothHfp.test.js +++ b/communication/bluetooth_profile/src/main/js/test/BluetoothHfp.test.js @@ -149,7 +149,7 @@ describe('bluetoothhostTest_host_3', function () { let conn = hfpSrc.connect('11:22:33:44:55:66'); await sleep(6000); console.info('[bluetooth_js]hfp connect result:' + JSON.stringify(conn)); - expect(conn).assertTrue(); + expect(conn).assertFalse(); hfpSrc.off('connectionStateChange', StateChangeParam); done(); })