Skip to content

Commit 06302cb

Browse files
author
Mika Leppänen
committed
Set greentea wifi tests to set channel back to any after channel tests
1 parent 970a21f commit 06302cb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

TESTS/network/wifi/wifi_connect_params_channel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ void wifi_connect_params_channel(void)
3636

3737
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);
3838
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, error);
39+
40+
wifi->set_channel(0);
3941
}
4042

4143
#endif // defined(MBED_CONF_APP_WIFI_SECURE_SSID)

TESTS/network/wifi/wifi_connect_params_channel_fail.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ void wifi_connect_params_channel_fail(void)
3636

3737
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);
3838
TEST_ASSERT(error == NSAPI_ERROR_CONNECTION_TIMEOUT || error == NSAPI_ERROR_NO_CONNECTION);
39+
40+
wifi->set_channel(0);
3941
}
4042

4143
#endif // defined(MBED_CONF_APP_WIFI_SECURE_SSID)

0 commit comments

Comments
 (0)