thread test

This commit is contained in:
Will McGugan 2020-09-26 16:01:04 +01:00
parent e03c7a4efe
commit 03d6025bcb
1 changed files with 2 additions and 2 deletions

View File

@ -309,8 +309,8 @@ def test_track_thread() -> None:
with track_thread:
track_thread.completed = 1
sleep(0.2)
assert progress.tasks[task_id].completed == 1
sleep(0.3)
assert progress.tasks[task_id].completed >= 1
track_thread.completed += 1