Skip to content

Commit d2b0607

Browse files
Merge pull request #266 from labthings/fix-race-in-logging-test
Fix a race condition in `test_logs`
2 parents 32a9cd1 + c9ec329 commit d2b0607

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)