From c9ec329c852eb0ac446743d5e2a7049d97ceef98 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Wed, 25 Feb 2026 22:39:58 +0000 Subject: [PATCH] Fix a race condition An indentation error in `_call_action_can_get_logs` meant the test server was shut down before the action completed, causing an error. I have fixed the indentation and I am fairly sure that will fix the problem. --- tests/test_logs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_logs.py b/tests/test_logs.py index 45af9d46..dd4b51d3 100644 --- a/tests/test_logs.py +++ b/tests/test_logs.py @@ -201,8 +201,8 @@ def _call_action_can_get_logs(): server = lt.ThingServer({"logging_thing": ThingThatLogs}) with TestClient(server.app) as client: response = client.post("/logging_thing/log_and_capture", json={"msg": "foobar"}) - response.raise_for_status() - return poll_task(client, response.json()) + response.raise_for_status() + return poll_task(client, response.json()) def test_action_can_get_logs():