blitz_api/tests
fusion44 5aa79acb10
fix(apps): don't release another task's app-manage lock
app_manage_task_impl released APP_MANAGE_LOCK_KEY and broadcast a
FINISHED message from its finally block unconditionally, including on
the early-return path where acquire_lock reported the lock as already
held by a running install. A duplicate install/uninstall request would
therefore delete the running task's lock (allowing concurrent
management of the same app) and send FINISHED, which stopped that
task's AppManageListener before it was done.

Track whether this task actually acquired the lock and only
release + finish when it did.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 20:01:54 +02:00
..
models feat: implement Ruff as a linter; fix given errors 2023-06-25 07:17:00 +02:00
routers tests: add better integration tests 2026-02-03 11:06:06 +01:00
__init__.py test: Add testing dependencies and first tests 2021-10-02 12:00:44 +02:00
test_app_manage_lock.py fix(apps): don't release another task's app-manage lock 2026-07-03 20:01:54 +02:00
test_cln_shell_safety.py fix(lightning): prevent shell injection in CLN local calls 2026-07-03 19:58:41 +02:00
test_exec_bash_timeout.py fix(api): catch subprocess timeouts in exec_bash_command 2026-07-03 19:59:57 +02:00
test_warmup_events.py fix: send bitcoin-only warmup app status as app_state_update_message 2026-07-03 15:30:17 +02:00
utils.py chore: format source using the pre_commit command 2022-03-20 17:20:56 +01:00