From e603ca573f3c157b742d6ab56f0a33193fb03a27 Mon Sep 17 00:00:00 2001 From: quanli Date: Mon, 26 Sep 2022 15:20:07 +0800 Subject: [PATCH] fixed 5b9a11c from https://gitee.com/quanli125/xts_acts/pulls/5679 quanli1@huawei.com Signed-off-by: quanli --- .../bluetooth_on/src/main/js/test/BluetoothPair.test.js | 4 +++- .../src/main/js/test/WifiCandidateNetWork.test.js | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/communication/bluetooth_on/src/main/js/test/BluetoothPair.test.js b/communication/bluetooth_on/src/main/js/test/BluetoothPair.test.js index 168d0cf26..c5667ed5f 100644 --- a/communication/bluetooth_on/src/main/js/test/BluetoothPair.test.js +++ b/communication/bluetooth_on/src/main/js/test/BluetoothPair.test.js @@ -75,7 +75,8 @@ describe('bluetoothhostTest2', function() { */ it('SUB_COMMUNICATION_BLUETOOTH_BR_Pair_0200', 0, async function (done) { function PinRequiredParam(data) { - console.info("[bluetooth_js] pinRequired on:" + JSON.stringify(data)); + console.info("[bluetooth_js] pinRequired on:" + + JSON.stringify(data.deviceId)+JSON.stringify(data.pinCode)); bluetooth.setDevicePairingConfirmation(data.deviceId,false); } bluetooth.BLE.on('pinRequired', PinRequiredParam); @@ -286,3 +287,4 @@ describe('bluetoothhostTest2', function() { } + diff --git a/communication/wifi_standard/src/main/js/test/WifiCandidateNetWork.test.js b/communication/wifi_standard/src/main/js/test/WifiCandidateNetWork.test.js index 0d5e8b2ab..15ee2673e 100644 --- a/communication/wifi_standard/src/main/js/test/WifiCandidateNetWork.test.js +++ b/communication/wifi_standard/src/main/js/test/WifiCandidateNetWork.test.js @@ -125,6 +125,13 @@ export default function actsWifiCandidateNetWorkTest() { "preSharedKey": "12345678", "isHiddenSsid": false, "securityType": wifiSecurityType.WIFI_SEC_TYPE_PSK, + "netId": -1, + "ipType": 1, + "creatorUid": 7, + "disableReason": 0, + "randomMacType": 0, + "randomMacAddr": "11:22:33:44:55:66", + "staticIp": {"ipAddress": 1284752956,"gateway": 1284752936}, }; await wifi.addCandidateConfig(wifiDeviceConfig) .then(netWorkId => { -- GitLab