Skip to content

Commit

Permalink
Fix exit test endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jvessella committed May 10, 2024
1 parent 5c1a079 commit 61bc7fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gamebrain/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

# DM23-0100

import asyncio
import os
from json import (
JSONDecodeError,
Expand Down Expand Up @@ -293,7 +294,7 @@ async def end_game_sessions():

@test_router.get("/exit")
async def exit():
sys.exit(1337)
asyncio.get_running_loop().stop()


@test_router.get("/logs/{module}/{interval}")
Expand Down

0 comments on commit 61bc7fc

Please sign in to comment.