Skip to content

Commit 05e258b

Browse files
committed
test(ws): coerce liquidation feed d to int for wire str/int tolerance
1 parent f39f163 commit 05e258b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_ws_live.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ async def run():
177177
assert isinstance(first, dict)
178178
for field in ("e", "d", "s", "b", "q", "sd"):
179179
assert field in first, f"missing {field!r} in {first!r}"
180-
assert isinstance(first["d"], int) and first["d"] > 1_000_000_000_000
180+
assert int(first["d"]) > 1_000_000_000_000 # plausible UNIX-ms (str or int)
181181
assert any(f.get("snap") is True for f in frames)
182182

183183

0 commit comments

Comments
 (0)