test(i2c): Do not use delta as Wokwi timing can be inconsistent (#11080)
* test(i2c): Do not use delta as Wokwi timing can be inconsistent * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
parent
c2b0482511
commit
2a3de9c415
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ void rtc_run_clock() {
|
||||||
ds1307_get_time(&read_sec, &read_min, &read_hour, &read_day, &read_month, &read_year);
|
ds1307_get_time(&read_sec, &read_min, &read_hour, &read_day, &read_month, &read_year);
|
||||||
|
|
||||||
//Check time
|
//Check time
|
||||||
TEST_ASSERT_UINT8_WITHIN(2, start_sec + 5, read_sec);
|
TEST_ASSERT_NOT_EQUAL(start_sec, read_sec); //Seconds should have changed
|
||||||
TEST_ASSERT_EQUAL(start_min, read_min);
|
TEST_ASSERT_EQUAL(start_min, read_min);
|
||||||
TEST_ASSERT_EQUAL(start_hour, read_hour);
|
TEST_ASSERT_EQUAL(start_hour, read_hour);
|
||||||
TEST_ASSERT_EQUAL(start_day, read_day);
|
TEST_ASSERT_EQUAL(start_day, read_day);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue