Skip to content

Commit

Permalink
fix: Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnuon committed Jan 4, 2024
1 parent 6252157 commit 3655152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search/tests/test_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_start_timer(self):
self.assertTrue(timer.end_time is not None)

def test_elapsed_time(self):
start = datetime.datetime(2024, 1, 0, 0, 0, 0, 0)
start = datetime.datetime(2024, 1, 1, 0, 0, 0, 0)
end = start + datetime.timedelta(seconds=5)

timer = Timer()
Expand All @@ -26,7 +26,7 @@ def test_elapsed_time(self):
self.assertEqual(timer.end_time, end)

def test_elapsed_time_string(self):
start = datetime.datetime(2024, 1, 0, 0, 0, 0, 0)
start = datetime.datetime(2024, 1, 1, 0, 0, 0, 0)
end = start + datetime.timedelta(seconds=5)

timer = Timer()
Expand Down

0 comments on commit 3655152

Please sign in to comment.