Skip to content

Commit

Permalink
fixed tornado shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Mar 21, 2024
1 parent 6cd4ccf commit 6a5ea59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_activity_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ def _queue_stopper() -> None:
current_io_loop.start()
stopping_thread.join()

# cleanly shut down tornado server and loop
current_io_loop.close()
http_server.stop()

thread = threading.Thread(target=_run_server_worker, daemon=True)
thread.start()

Expand Down

0 comments on commit 6a5ea59

Please sign in to comment.