Cellular tests: fixed cellular greentea tests by adding timeout as it may take time to register, attach and connect to network.

pull/6301/head
Teppo Järvelin 2018-03-08 13:27:23 +02:00
parent 79bd2638b8
commit 228f7e8160
1 changed files with 1 additions and 0 deletions

View File

@ -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.");