Skip to content

Commit 61374d0

Browse files
committed
Introduce clock offset of 10s
1 parent bb658d1 commit 61374d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/stick_test_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,9 @@
602602
b"000000C1", # Success ack
603603
b"003A" # msg_id
604604
+ b"0098765432101234" # mac
605-
+ bytes(("%%0%dd" % 2) % utc_now.second, pw_constants.UTF8) # noqa: UP031
605+
+ bytes(
606+
("%%0%dd" % 2) % (utc_now + timedelta(seconds=10)).second, pw_constants.UTF8
607+
) # noqa: UP031
606608
+ bytes(("%%0%dd" % 2) % utc_now.minute, pw_constants.UTF8) # noqa: UP031
607609
+ bytes(("%%0%dd" % 2) % utc_now.hour, pw_constants.UTF8) # noqa: UP031
608610
+ bytes(("%%0%dd" % 2) % utc_now.weekday(), pw_constants.UTF8) # noqa: UP031

0 commit comments

Comments
 (0)