Skip to content

Commit

Permalink
fix: reduced test time
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 20, 2022
1 parent 6743de2 commit af32e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/colony/test/libs/scheduling_util.py
Expand Up @@ -87,13 +87,13 @@ def update_values():
self.assertEqual(values, dict())

initial = time.time()
identifier = scheduler.add_callable(update_values, time.time() + 0.5)
identifier = scheduler.add_callable(update_values, time.time() + 0.3)
self.assertEqual(identifier, 1)
time.sleep(0.25)
time.sleep(0.1)
self.assertEqual(values, dict())

scheduler.wait_callable(identifier)
self.assertEqual(time.time() - initial >= 0.5, True)
self.assertEqual(time.time() - initial >= 0.3, True)
self.assertEqual(values, dict(a = 1))

def test_stopped(self):
Expand Down

0 comments on commit af32e78

Please sign in to comment.