Merge pull request #6993 from deepikabhavnani/cpu_test_fix

CPU Stats test - Increased wait time to allow device to sleep
pull/6994/merge
Martin Kojtal 2018-05-24 09:38:46 +02:00 committed by GitHub
commit 18634009c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);