We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d3cd51 commit ed8b05dCopy full SHA for ed8b05d
tests/test_simple_35.py
@@ -110,17 +110,17 @@ async def test_clock_loop_advance_time(clock_event_loop):
110
"""
111
Test the sliding time event loop fixture
112
113
- # a timeout for operations using advance_time
114
- NAP_TIME = 10
+ # A task is created that will sleep some number of seconds
+ SLEEP_TIME = 10
115
116
# create the task
117
- task = clock_event_loop.create_task(asyncio.sleep(NAP_TIME))
+ task = clock_event_loop.create_task(asyncio.sleep(SLEEP_TIME))
118
assert not task.done()
119
120
# start the task
121
await clock_event_loop.advance_time(0)
122
123
124
# process the timeout
125
- await clock_event_loop.advance_time(NAP_TIME)
+ await clock_event_loop.advance_time(SLEEP_TIME)
126
assert task.done()
0 commit comments