Skip to content

Commit 257df50

Browse files
juhaylinenadbridge
authored andcommitted
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 7959873 commit 257df50

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
@@ -55,7 +55,7 @@ using namespace utest::v1;
5555
// Test setup
5656
utest::v1::status_t test_setup(const size_t number_of_cases) {
5757
#if !MBED_CONF_APP_ECHO_SERVER
58-
GREENTEA_SETUP(600, "default_auto");
58+
GREENTEA_SETUP(1200, "default_auto");
5959
#endif
6060
return verbose_test_setup_handler(number_of_cases);
6161
}

0 commit comments

Comments
 (0)