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 a70f11e commit f956bcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ jobs:
# run: "make utest"
- name: "Integration test"
run: "make itest"
# run: "npx --help"
12 changes: 2 additions & 10 deletions tests/dev_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,9 @@ def _run() -> None:
)
self._process.communicate()

print(1)
self._thread = threading.Thread(target=_run)
print(2)
self._thread.start()
print(3)
self._thread.join(timeout=10)
print(4)

def stop(self) -> None:
if not self._enabled:
Expand All @@ -64,13 +60,9 @@ def stop(self) -> None:
if not self._thread.is_alive():
raise Exception("thread is not alive")

print(5)
# self._process.terminate()
# self._process.send_signal(signal.SIGTERM)
# Would rather use `self._process.terminate()` but sometimes Dev Server
# takes too long to shutdown.
os.kill(self._process.pid, signal.SIGKILL)
print(6)
# self._thread.join(timeout=10)
print(7)


dev_server = _DevServer()

0 comments on commit f956bcd

Please sign in to comment.