Skip to content

Commit

Permalink
Add a clarifying comment in the test
Browse files Browse the repository at this point in the history
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
  • Loading branch information
exarkun and adiroiban committed Sep 22, 2022
1 parent 90b1572 commit 4825f8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/twisted/test/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ def foo(cnt):
loop.clock = clock
deferred = loop.start(0, now=False)

# Even though we have a no-delay loop,
# a single iteration of the reactor will not trigger the looping call
# multiple times.
# This is why we explicitly iterate multiple times.
clock.pump([0] * 5)
self.successResultOf(deferred)

Expand Down

0 comments on commit 4825f8b

Please sign in to comment.