File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,17 +110,17 @@ async def test_clock_loop_advance_time(clock_event_loop):
110
110
"""
111
111
Test the sliding time event loop fixture
112
112
"""
113
- # a timeout for operations using advance_time
114
- NAP_TIME = 10
113
+ # A task is created that will sleep some number of seconds
114
+ SLEEP_TIME = 10
115
115
116
116
# create the task
117
- task = clock_event_loop .create_task (asyncio .sleep (NAP_TIME ))
117
+ task = clock_event_loop .create_task (asyncio .sleep (SLEEP_TIME ))
118
118
assert not task .done ()
119
119
120
120
# start the task
121
121
await clock_event_loop .advance_time (0 )
122
122
assert not task .done ()
123
123
124
124
# process the timeout
125
- await clock_event_loop .advance_time (NAP_TIME )
125
+ await clock_event_loop .advance_time (SLEEP_TIME )
126
126
assert task .done ()
You can’t perform that action at this time.
0 commit comments