mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/7880/head
parent
812c6d5c88
commit
4a66eb6bb1
|
@ -102,7 +102,7 @@ void test_emac_initialize()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Power up the interface and emac driver
|
// Power up the interface and emac driver
|
||||||
network_interface->connect();
|
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, network_interface->connect());
|
||||||
|
|
||||||
worker_loop_link_up_wait();
|
worker_loop_link_up_wait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ using namespace utest::v1;
|
||||||
utest::v1::status_t test_setup(const size_t number_of_cases)
|
utest::v1::status_t test_setup(const size_t number_of_cases)
|
||||||
{
|
{
|
||||||
#if !MBED_CONF_APP_ECHO_SERVER
|
#if !MBED_CONF_APP_ECHO_SERVER
|
||||||
GREENTEA_SETUP(600, "default_auto");
|
GREENTEA_SETUP(1200, "default_auto");
|
||||||
#endif
|
#endif
|
||||||
return verbose_test_setup_handler(number_of_cases);
|
return verbose_test_setup_handler(number_of_cases);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue