diff --git a/communication/bluetooth_ble/src/main/js/test/BleGattManager.test.js b/communication/bluetooth_ble/src/main/js/test/BleGattManager.test.js index 03f58999a5674f6b720aacf54fc1520a6d14cd76..f3d55ea9026cd521c332007cfca16afb98628d92 100644 --- a/communication/bluetooth_ble/src/main/js/test/BleGattManager.test.js +++ b/communication/bluetooth_ble/src/main/js/test/BleGattManager.test.js @@ -61,9 +61,11 @@ describe('bluetoothBLETest', function() { afterEach(function () { console.info('afterEach called') }) - afterAll(function () { + afterAll(async function (done) { console.info('afterAll called') + await sleep(6000); gattClient.close(); + done() }) /** diff --git a/communication/wifi_p2p/src/main/js/test/WifiManagerP2PFunction.test.js b/communication/wifi_p2p/src/main/js/test/WifiManagerP2PFunction.test.js index 06447c8fed52d4476567778e6a0388616a89c045..258c2503d4123fe9df807e24a7ba03c5ebb6f269 100644 --- a/communication/wifi_p2p/src/main/js/test/WifiManagerP2PFunction.test.js +++ b/communication/wifi_p2p/src/main/js/test/WifiManagerP2PFunction.test.js @@ -357,7 +357,7 @@ export default function actsWifiManagerFunctionTest() { */ it('SUB_Communication_WiFi_XTS_P2P_0009', 0, async function (done) { let wifiP2PConfig = { - deviceAddress : "00:00:00:00:00:00", + deviceAddress : "11:22:33:44:55:66", netId : -1, passphrase : "12345678", groupName : "AAAZZZ456", diff --git a/communication/wifi_p2p/src/main/js/test/WifiP2PFunction.test.js b/communication/wifi_p2p/src/main/js/test/WifiP2PFunction.test.js index c05a0cc8a58d6f124ed3f262cce1ceb584678435..39cafa711a063f1b736fedeec233dab7bc3d64e8 100644 --- a/communication/wifi_p2p/src/main/js/test/WifiP2PFunction.test.js +++ b/communication/wifi_p2p/src/main/js/test/WifiP2PFunction.test.js @@ -381,7 +381,7 @@ export default function actsWifiFunctionTest() { */ it('SUB_Communication_WiFi_XTS_P2P_0009', 0, async function (done) { let wifiP2PConfig = { - deviceAddress : "00:00:00:00:00:00", + deviceAddress : "11:22:33:44:55:66", netId : -1, passphrase : "12345678", groupName : "AAAZZZ456", diff --git a/communication/wifi_standard/Test.json b/communication/wifi_standard/Test.json index a60764974da4c7eaeec71729b2cad14d6391d75c..fd2a374a9985174e6ce841017b704d885019e77e 100644 --- a/communication/wifi_standard/Test.json +++ b/communication/wifi_standard/Test.json @@ -14,6 +14,13 @@ ], "type": "AppInstallKit", "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "hilog -Q pidoff", + "power-shell setmode 602" + ] } ] -} \ No newline at end of file +} diff --git a/communication/wifi_standard/src/main/js/test/List.test.js b/communication/wifi_standard/src/main/js/test/List.test.js index 3c360b682b7c57e34519092e8ab2bab4015318d2..5f31046bb0930f86be75beeabacc44d8c42fc564 100644 --- a/communication/wifi_standard/src/main/js/test/List.test.js +++ b/communication/wifi_standard/src/main/js/test/List.test.js @@ -12,17 +12,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import actsWifiManagerFunctionsTest from './WifiManagerStationFunctions.test.js' import actsWifiCandidateNetWorkTest from './WifiCandidateNetWork.test.js' import actsWifiManagerCandidateNetWorkTest from './WifiManagerCandidateNetWork.test.js' import actsWifiFunctionsTest from './WifiStationFunctions.test.js' -import actsWifiManagerFunctionsTest from './WifiManagerStationFunctions.test.js' import actsWifiEventTest from './WifiStationEvent.test.js' import actsWifiManagerEventTest from './WifiManagerStationEvent.test.js' export default function testsuite() { + actsWifiManagerFunctionsTest() actsWifiCandidateNetWorkTest() actsWifiManagerCandidateNetWorkTest() actsWifiFunctionsTest() - actsWifiManagerFunctionsTest() actsWifiEventTest() actsWifiManagerEventTest() }