Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
amh4r committed Oct 22, 2023
1 parent cff4d14 commit a70f11e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/dev_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import signal
import subprocess
import threading

Expand Down Expand Up @@ -64,9 +65,11 @@ def stop(self) -> None:
raise Exception("thread is not alive")

print(5)
self._process.terminate()
# self._process.terminate()
# self._process.send_signal(signal.SIGTERM)
os.kill(self._process.pid, signal.SIGKILL)
print(6)
self._thread.join(timeout=10)
# self._thread.join(timeout=10)
print(7)


Expand Down

0 comments on commit a70f11e

Please sign in to comment.