fix(tests): rename server_thread → _server_thread in test_dry_run_playwright.py
Python package / build (3.12.3) (pull_request) Successful in 2m15s
Python package / build (3.13) (pull_request) Successful in 2m14s
Python package / build (3.14) (pull_request) Successful in 2m17s

Lines 136-137 referenced undefined 'server_thread' (typo), the module-level
global is named '_server_thread'. flake8 F821 failed the build.

Verified locally:
  - flake8 E9/F63/F7/F82: 0 errors
  - mypy --no-incremental: Success, no issues found in 41 source files
  - backend/app.py + backend/web.py import OK
This commit is contained in:
Alex Rudenk
2026-09-05 12:32:13 +00:00
parent 4079a84224
commit afc2de3412
+2 -2
View File
@@ -133,8 +133,8 @@ class TestDryRunPlaywright:
assert containers[0].status == "running"
finally:
app.stop()
server_thread.join(timeout=30)
if server_thread.is_alive():
_server_thread.join(timeout=30)
if _server_thread.is_alive():
logger.warning("App server thread did not stop within 30 seconds")