Skip to content

test: drain API workers before removing fixture state - #45

Merged
brainx merged 1 commit into
mainfrom
fix/drain-api-test-workers
Sep 7, 2026
Merged

brainx merged 1 commit into
mainfrom
fix/drain-api-test-workers

Conversation

@brainx

@brainx brainx commented Sep 7, 2026

Copy link
Copy Markdown
Owner

The unauthenticated-read API test could remove its temporary state while a daemon request worker was still writing its post-response access log. This caused the Python 3.11 coverage run to fail with a nonempty-directory cleanup error after its HTTP assertions had passed.

Use the Zeus server and existing bounded fixture drain helper, and explicitly close the HTTP connection. Preserve both authorization assertions and cleanup failures; application behavior is unchanged.

Validation: four targeted API fixture tests passed with ResourceWarning treated as an error. make check passed: 1,558 tests twice (three platform skips per run), 83.91% source/branch coverage, repository checks, Ruff, mypy, Bandit, and ShellCheck.

@brainx
brainx merged commit 30284e2 into main Sep 7, 2026
18 checks passed
@brainx
brainx deleted the fix/drain-api-test-workers branch September 7, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant