From 5105a0874f0acfeaab1bcde14c02c2c831203371 Mon Sep 17 00:00:00 2001 From: q00313334 Date: Thu, 18 Nov 2021 21:01:17 +0800 Subject: [PATCH] fixed 6a66245 from https://gitee.com/q00313334/xts_acts/pulls/1155 wifijs testcase modified Signed-off-by: q00313334 --- .../src/main/js/default/pages/index/index.js | 3 ++- .../src/main/js/default/test/WifiSta.test.js | 13 ++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/communication/wifi_standard/src/main/js/default/pages/index/index.js b/communication/wifi_standard/src/main/js/default/pages/index/index.js index 6a89f7a2d..96b91894f 100755 --- a/communication/wifi_standard/src/main/js/default/pages/index/index.js +++ b/communication/wifi_standard/src/main/js/default/pages/index/index.js @@ -37,8 +37,9 @@ export default { const configService = core.getDefaultService('config') - configService.setConfig(this) + this.timeout = 600000 + configService.setConfig(this) require('../../test/List.test') core.execute() }, diff --git a/communication/wifi_standard/src/main/js/default/test/WifiSta.test.js b/communication/wifi_standard/src/main/js/default/test/WifiSta.test.js index 04e202679..20312d047 100755 --- a/communication/wifi_standard/src/main/js/default/test/WifiSta.test.js +++ b/communication/wifi_standard/src/main/js/default/test/WifiSta.test.js @@ -70,7 +70,7 @@ describe('ACTS_WifiTest', function () { expect(enable).assertTrue(); } - sleep(300000); + sleep(30000); }) /** @@ -159,9 +159,8 @@ describe('ACTS_WifiTest', function () { console.log("[wifi_test] wifi active result: " + active); if(!active){ var enable = wifi.enableWifi(); - sleep(3000); - except(enable).assertTrue(); - + sleep(30000); + except(enable).assertTrue(); } wifi.addDeviceConfig(wifiConfig, (result) => { @@ -169,7 +168,7 @@ describe('ACTS_WifiTest', function () { console.info("[wifi_test] test_007 wifi addDeviceconfig callback: " +JSON.stringify(result)); var conn = wifi.connectToNetwork(result); expect(conn).assertTrue(); - sleep(5000); + sleep(50000); console.info("[wifi_test] test_007 wifi addDeviceconfig callback: " + result); for (var j = 0; j < JSON.stringify(result).length; ++j) { console.info("ssid: " + result[j].ssid); @@ -187,7 +186,7 @@ describe('ACTS_WifiTest', function () { } var discon = wifi.disconnect(); except(discon).assertTrue(); - sleep(3000); + sleep(30000); var disable = wifi.disableWifi(); except(disable).assertTrue(); }); @@ -205,7 +204,7 @@ describe('ACTS_WifiTest', function () { if(!active){ var enable = wifi.enableWifi(); except(enable).assertTrue(); - sleep(3000); + sleep(30000); } wifi.addDeviceConfig(wifiConfig) .then(result => { -- GitLab