mirror of https://github.com/Textualize/rich.git
quicker test
This commit is contained in:
parent
dea111b8b3
commit
a6e2cd6e1c
|
@ -338,10 +338,10 @@ def test_refresh_thread() -> None:
|
|||
self.count += 1
|
||||
|
||||
progress = MockProgress()
|
||||
thread = _RefreshThread(progress, 10)
|
||||
thread = _RefreshThread(progress, 100)
|
||||
assert thread.progress == progress
|
||||
thread.start()
|
||||
sleep(0.5)
|
||||
sleep(0.2)
|
||||
thread.stop()
|
||||
assert progress.count >= 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue