test(io_pool): update assertion for 8-worker pool size
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
"""Tests for src/io_pool.py (the shared 4-thread job pool on AppController).
|
"""Tests for src/io_pool.py (the shared 8-thread job pool on AppController).
|
||||||
|
|
||||||
Historical note: an earlier revision of this file added two regression
|
Historical note: an earlier revision of this file added two regression
|
||||||
tests asserting that ``make_io_pool`` registered an atexit shutdown
|
tests asserting that ``make_io_pool`` registered an atexit shutdown
|
||||||
@@ -27,9 +27,9 @@ def test_make_io_pool_returns_thread_pool_executor() -> None:
|
|||||||
pool.shutdown(wait=False)
|
pool.shutdown(wait=False)
|
||||||
|
|
||||||
|
|
||||||
def test_make_io_pool_has_four_workers() -> None:
|
def test_make_io_pool_has_eight_workers() -> None:
|
||||||
pool = make_io_pool()
|
pool = make_io_pool()
|
||||||
assert pool._max_workers == IO_POOL_MAX_WORKERS == 4
|
assert pool._max_workers == IO_POOL_MAX_WORKERS == 8
|
||||||
pool.shutdown(wait=False)
|
pool.shutdown(wait=False)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user