Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
  • Loading branch information
timonwong committed Sep 25, 2024
1 parent f10f3ca commit 93ca640
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_ksuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ def test_golib_interop_ms_mode() -> None:
bytes.fromhex(test_data["payload"]),
)
n = KsuidMs.PAYLOAD_LENGTH_IN_BYTES
# XXX
dt = datetime.fromtimestamp(test_data["timestamp"])
assert dt.timestamp() is not None
assert ksuid.datetime.timestamp() is not None
ksuid_ms = KsuidMs(ksuid.datetime.timestamp(), ksuid.payload[:n])
assert ksuid_ms.datetime == ksuid.datetime
ksuid_ms_from = KsuidMs(ksuid_ms.datetime.timestamp(), ksuid_ms.payload)
Expand Down

0 comments on commit 93ca640

Please sign in to comment.