提交 4937a85b 编写于 作者: O openharmony_ci 提交者: Gitee

!1155 【communication】WIFI JS L2测试用例超时问题

Merge pull request !1155 from 权力/myfeature
......@@ -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()
},
......
......@@ -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 => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册