Skip to content

Commit 2a3de9c

Browse files
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>
1 parent c2b0482 commit 2a3de9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/validation/i2c_master/i2c_master.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void rtc_run_clock() {
162162
ds1307_get_time(&read_sec, &read_min, &read_hour, &read_day, &read_month, &read_year);
163163

164164
//Check time
165-
TEST_ASSERT_UINT8_WITHIN(2, start_sec + 5, read_sec);
165+
TEST_ASSERT_NOT_EQUAL(start_sec, read_sec); //Seconds should have changed
166166
TEST_ASSERT_EQUAL(start_min, read_min);
167167
TEST_ASSERT_EQUAL(start_hour, read_hour);
168168
TEST_ASSERT_EQUAL(start_day, read_day);

0 commit comments

Comments
 (0)