Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Oct 8, 2024
1 parent 987c19a commit 05d85af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rpc_agent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ def test_retry_strategy(self) -> None:
st = time.time()
result = fix_retry.retry(mock_func)
et = time.time()
self.assertTrue(et - st > delay * 0.5 + 0.1)
self.assertTrue(et - st > delay * 0.5)
self.assertTrue(et - st < delay * 1.5 + 0.1)
self.assertEqual(result, "Success")
mock_func = MagicMock(
Expand All @@ -926,6 +926,6 @@ def test_retry_strategy(self) -> None:
st = time.time()
result = exp_retry.retry(mock_func)
et = time.time()
self.assertTrue(et - st > delay * 0.5 + 0.1)
self.assertTrue(et - st > delay * 0.5)
self.assertTrue(et - st < delay * 1.5 + 0.1)
self.assertEqual(result, "Success")

0 comments on commit 05d85af

Please sign in to comment.