mirror of https://github.com/ARMmbed/mbed-os.git
Cellular tests: fixed cellular greentea tests by adding timeout as it may take time to register, attach and connect to network.
parent
79bd2638b8
commit
228f7e8160
|
@ -71,6 +71,7 @@ static bool wait_register()
|
|||
|
||||
void test_attach()
|
||||
{
|
||||
cellularDevice.set_timeout(120*1000); // 120 second timeout for at commands after power is up. It might take time to register, attach and connect
|
||||
tr_info("Register to network.");
|
||||
TEST_ASSERT(wait_register());
|
||||
tr_info("Attach to network.");
|
||||
|
|
Loading…
Reference in New Issue