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
|
self.count += 1
|
||||||
|
|
||||||
progress = MockProgress()
|
progress = MockProgress()
|
||||||
thread = _RefreshThread(progress, 10)
|
thread = _RefreshThread(progress, 100)
|
||||||
assert thread.progress == progress
|
assert thread.progress == progress
|
||||||
thread.start()
|
thread.start()
|
||||||
sleep(0.5)
|
sleep(0.2)
|
||||||
thread.stop()
|
thread.stop()
|
||||||
assert progress.count >= 1
|
assert progress.count >= 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue