Skip to content

Commit

Permalink
kill process after use (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketmaurya authored Apr 12, 2024
1 parent 53588f9 commit ed633aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_lit_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_single_loop(simple_litapi, loop_args):


def test_run():
subprocess.Popen(
process = subprocess.Popen(
["python", "tests/simple_server.py"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
Expand All @@ -118,3 +118,4 @@ def test_run():
output = subprocess.run("python client.py", shell=True, capture_output=True, text=True).stdout
assert '{"output":16.0}' in output
os.remove("client.py")
process.kill()

0 comments on commit ed633aa

Please sign in to comment.