Skip to content

Commit 77fb8d3

Browse files
committed
Test: add log after pulse counter reset timestamp
1 parent aaa1c73 commit 77fb8d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_usb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,11 +1122,11 @@ def test_pulse_collection_consumption(
11221122
tst_consumption.update_pulse_counter(45, 0, pulse_update_4)
11231123
assert tst_consumption.log_rollover
11241124
assert tst_consumption.hourly_reset_time == pulse_update_4
1125-
test_timestamp = fixed_this_hour + td(hours=1, minutes=1, seconds=5)
1125+
test_timestamp = fixed_this_hour + td(hours=1, minutes=1, seconds=4)
11261126
assert tst_consumption.collected_pulses(
11271127
test_timestamp, is_consumption=True
11281128
) == (45, pulse_update_4)
1129-
tst_consumption.add_log(100, 2, (fixed_this_hour + td(hours=1)), 2222)
1129+
tst_consumption.add_log(100, 2, (fixed_this_hour + td(hours=1, minutes=1, seconds=5)), 2222)
11301130
assert tst_consumption.log_rollover
11311131
# Test collection of the last full hour
11321132
assert tst_consumption.collected_pulses(

0 commit comments

Comments
 (0)