Skip to content

Commit 4a66eb6

Browse files
committed
Update Greentea EMAC tests
Increase timeout for EMAC tests. Old timeout (600 seconds) was not enough for slower devices to complete the tests. Check that connection was successful when running test case emac_test_initialize.
1 parent 812c6d5 commit 4a66eb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TESTS/network/emac/emac_test_initialize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void test_emac_initialize()
102102
#endif
103103

104104
// Power up the interface and emac driver
105-
network_interface->connect();
105+
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, network_interface->connect());
106106

107107
worker_loop_link_up_wait();
108108
}

TESTS/network/emac/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ using namespace utest::v1;
5656
utest::v1::status_t test_setup(const size_t number_of_cases)
5757
{
5858
#if !MBED_CONF_APP_ECHO_SERVER
59-
GREENTEA_SETUP(600, "default_auto");
59+
GREENTEA_SETUP(1200, "default_auto");
6060
#endif
6161
return verbose_test_setup_handler(number_of_cases);
6262
}

0 commit comments

Comments
 (0)