Skip to content

Commit ea356a6

Browse files
author
deepikabhavnani
committed
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.
1 parent 99df848 commit ea356a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/mbed_platform/stats_cpu/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void test_cpu_info(void)
6565
mbed_stats_cpu_t stats;
6666
// Additional read to make sure timer is initialized
6767
mbed_stats_cpu_get(&stats);
68-
Thread::wait(1);
68+
Thread::wait(3);
6969
mbed_stats_cpu_get(&stats);
7070
TEST_ASSERT_NOT_EQUAL(0, stats.uptime);
7171
TEST_ASSERT_NOT_EQUAL(0, stats.idle_time);

0 commit comments

Comments
 (0)