Skip to content

Commit

Permalink
fix(client): improve ut stability by prolonging the time gap (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchuan authored Feb 15, 2023
1 parent 0b55a7c commit f87cd3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/tests/cli/assistance/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ def test_run(self) -> None:
def f() -> None:
counter[0] += 1

runner = common.PeriodicRunner("runner", f, 0.4)
runner = common.PeriodicRunner("runner", f, 2)
try:
runner.start()
time.sleep(1)
time.sleep(5)
runner.stop()
runner.join()
self.assertEqual(2, counter[0])
Expand Down

0 comments on commit f87cd3d

Please sign in to comment.