Skip to content

Commit

Permalink
WIP: test random test fails
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Yu <[email protected]>
  • Loading branch information
yuhaoth committed Apr 10, 2023
1 parent f740767 commit dfb63fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/suites/test_suite_platform.function
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ void time_delay_seconds(int delay_secs)
sleep_ms(delay_secs * 1000);

elapsed_secs = mbedtls_time(NULL) - current;
TEST_ASSERT(elapsed_secs >= delay_secs && elapsed_secs < 4 + delay_secs);
TEST_ASSERT(elapsed_secs >= delay_secs);
TEST_ASSERT(elapsed_secs < 4 + delay_secs);
/* This goto is added to avoid warnings from the generated code. */
goto exit;
}
Expand Down

0 comments on commit dfb63fa

Please sign in to comment.