Skip to content

Commit

Permalink
Adjust test_writer_bad_message for ujson
Browse files Browse the repository at this point in the history
The correct timestamp value of
`datetime.datetime(2019, 1, 1, 1, 1,1).timestamp()` is 1546300861.

Closes: python-lsp#6
  • Loading branch information
jelly committed Aug 27, 2021
1 parent 8aee003 commit d8f6524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ def test_writer_bad_message(wfile, writer):
b'Content-Length: 10\r\n'
b'Content-Type: application/vscode-jsonrpc; charset=utf8\r\n'
b'\r\n'
b'1546304461',
b'1546300861',
b'Content-Length: 10\r\n'
b'Content-Type: application/vscode-jsonrpc; charset=utf8\r\n'
b'\r\n'
b'1546322461'
b'1546300861'
]

0 comments on commit d8f6524

Please sign in to comment.