forked from kenzuya/unshackle
refactor(api): put the job and worker process channels in job_channel
This commit is contained in:
@@ -14,7 +14,7 @@ from pathlib import Path
|
||||
import pytest
|
||||
|
||||
from unshackle.core.api import progress as progress_module
|
||||
from unshackle.core.api.download_worker import write_result
|
||||
from unshackle.core.api.job_channel import write_json
|
||||
from unshackle.core.api.progress import build_job_progress_callables
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
@@ -110,7 +110,7 @@ def test_concurrent_writers_do_not_clobber_each_other(tmp_path: Path):
|
||||
start.wait()
|
||||
try:
|
||||
for tick in range(40):
|
||||
write_result(target, {"writer": index, "tick": tick})
|
||||
write_json(target, {"writer": index, "tick": tick})
|
||||
except BaseException as exc: # noqa: BLE001 - reported to the test thread
|
||||
errors.append(exc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user