File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -295,14 +295,14 @@ def backgroundRun():
295
295
startTime = time .time ()
296
296
thread .start ()
297
297
298
- time .sleep ( 0.1 )
298
+ time .sleep ( 0.01 )
299
299
canceller .cancel ()
300
300
thread .join ()
301
301
302
302
# This test should actually produce a time extremely close to the sleep duration ( within
303
303
# 0.01 seconds whether the sleep duration is 0.01 seconds or 1 seconds ), but checking
304
304
# that it terminates with 0.1 seconds is a minimal performance bar
305
- self .assertLess ( time .time () - startTime , 0.2 )
305
+ self .assertLess ( time .time () - startTime , 0.11 )
306
306
self .assertTrue ( cancelled [0 ] )
307
307
308
308
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ def backgroundRun():
202
202
startTime = time .time ()
203
203
thread .start ()
204
204
205
- time .sleep ( 0.05 )
205
+ time .sleep ( 0.01 )
206
206
canceller .cancel ()
207
207
thread .join ()
208
208
You can’t perform that action at this time.
0 commit comments