Fix WIFI-CONNECT-PARAMS-CHANNEL-FAIL Greentea test case

The test case is executed succesfully when usage of wrong channel is detected
pull/6139/head
Veijo Pesonen 2018-02-20 16:09:46 +02:00
parent e1d9d8783d
commit 8e12db1a2b
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ void wifi_connect_params_channel_fail(void)
return;
}
nsapi_error_t error = wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, get_security(), MBED_CONF_APP_WIFI_CH_SECURE);
nsapi_error_t error = wifi->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, get_security(), MBED_CONF_APP_WIFI_CH_UNSECURE);
TEST_ASSERT(error==NSAPI_ERROR_CONNECTION_TIMEOUT || error==NSAPI_ERROR_NO_CONNECTION);
}