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 6a89f7a2d2a6058e6627c290feecb4123d43b4a8..96b91894f4a078fc01062de48f02882b5f68f0f2 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 04e202679c2a8738be8494d419ec35d3da6264b5..20312d047ff0e91ca899bd5316e4e9957914ee38 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 => {