Increased wait time to allow device to sleep

With small wait time at the start, chances are that device does not
enter sleep and idle time is zero. Increasing wait time to make sure
device goes to sleep.
pull/6993/head
deepikabhavnani 2018-05-23 15:06:12 -05:00
parent 99df848e1c
commit ea356a6e8c
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void test_cpu_info(void)
mbed_stats_cpu_t stats;
// Additional read to make sure timer is initialized
mbed_stats_cpu_get(&stats);
Thread::wait(1);
Thread::wait(3);
mbed_stats_cpu_get(&stats);
TEST_ASSERT_NOT_EQUAL(0, stats.uptime);
TEST_ASSERT_NOT_EQUAL(0, stats.idle_time);