Skip to content

Commit

Permalink
tests.test_daemon: shutdown server after the fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Aug 14, 2024
1 parent cb811d5 commit 4eebd75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/func/test_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ def server():
thread = Thread(target=httpd.serve_forever)
thread.daemon = True
thread.start()
yield httpd
try:
yield httpd
finally:
httpd.shutdown()


def test_analytics(tmp_path, server):
Expand Down

0 comments on commit 4eebd75

Please sign in to comment.