Skip to content

Commit

Permalink
Merge pull request #102 from yoshiori/close_a_test_session
Browse files Browse the repository at this point in the history
Close the test session at the end of event sending.
  • Loading branch information
ninjinkun authored Jan 22, 2021
2 parents e9995a5 + b855708 commit fbae204
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions launchable/commands/record/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def printer(f):
res = client.request(
"post", "{}/events".format(session_id), data=payload, headers=headers)
res.raise_for_status()
res = client.request("patch", "{}/close".format(session_id), headers=headers)
res.raise_for_status()
except Exception as e:
if os.getenv(REPORT_ERROR_KEY):
raise e
Expand Down

0 comments on commit fbae204

Please sign in to comment.