Skip to content

Commit

Permalink
Time: Fix time test.
Browse files Browse the repository at this point in the history
  • Loading branch information
matan1008 committed Mar 3, 2022
1 parent ea9664e commit f50c9e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpcclient/tests/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ def test_set_current(client):
"""
:param rpcclient.client.Client client:
"""
old_now = client.time.now()
try:
client.time.set_current(datetime(year=2020, month=1, day=1))
assert client.time.now() < datetime(year=2020, month=1, day=1, minute=1)
finally:
client.time.set_current(old_now)
client.time.set_auto()


Expand Down

0 comments on commit f50c9e3

Please sign in to comment.