Skip to content

Commit c9ec329

Browse files
committed
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.
1 parent 2e0eb20 commit c9ec329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_logs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def _call_action_can_get_logs():
201201
server = lt.ThingServer({"logging_thing": ThingThatLogs})
202202
with TestClient(server.app) as client:
203203
response = client.post("/logging_thing/log_and_capture", json={"msg": "foobar"})
204-
response.raise_for_status()
205-
return poll_task(client, response.json())
204+
response.raise_for_status()
205+
return poll_task(client, response.json())
206206

207207

208208
def test_action_can_get_logs():

0 commit comments

Comments
 (0)