Skip to content

Commit 1087c0a

Browse files
author
Cruz Monrreal
authored
Merge pull request #7283 from juhaylinen/update-greentea-tests
Update Greentea netsocket and wifi tests
2 parents ea73207 + 3c32b3a commit 1087c0a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

TESTS/netsocket/tcp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void fill_tx_buffer_ascii(char *buff, size_t len)
9696
// Test setup
9797
utest::v1::status_t greentea_setup(const size_t number_of_cases)
9898
{
99-
GREENTEA_SETUP(240, "default_auto");
99+
GREENTEA_SETUP(480, "default_auto");
100100
_ifup();
101101
return greentea_test_setup_handler(number_of_cases);
102102
}

TESTS/netsocket/udp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void fill_tx_buffer_ascii(char *buff, size_t len)
7373
// Test setup
7474
utest::v1::status_t greentea_setup(const size_t number_of_cases)
7575
{
76-
GREENTEA_SETUP(240, "default_auto");
76+
GREENTEA_SETUP(480, "default_auto");
7777
_ifup();
7878
return greentea_test_setup_handler(number_of_cases);
7979
}

TESTS/network/wifi/wifi_connect_secure_fail.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ void wifi_connect_secure_fail(void)
3030
WiFiInterface *wifi = get_interface();
3131

3232
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(MBED_CONF_APP_WIFI_SECURE_SSID, "aaaaaaaa", get_security()));
33-
34-
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_AUTH_FAILURE, wifi->connect());
33+
nsapi_error_t error;
34+
error = wifi->connect();
35+
TEST_ASSERT(error == NSAPI_ERROR_AUTH_FAILURE ||
36+
error == NSAPI_ERROR_CONNECTION_TIMEOUT ||
37+
error == NSAPI_ERROR_NO_CONNECTION);
3538
}
3639

3740
#endif // defined(MBED_CONF_APP_WIFI_SECURE_SSID)

0 commit comments

Comments
 (0)