Skip to content

Commit ff6d808

Browse files
committed
dbg
1 parent 0e87641 commit ff6d808

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import json
44
import os
55
import os.path as osp
6+
import subprocess
67
import tempfile
78
import time
89
import uuid
@@ -206,8 +207,12 @@ def mock_github():
206207
yield proc
207208

208209
if proc:
209-
proc.kill()
210-
proc.wait()
210+
try:
211+
proc.terminate()
212+
proc.wait(timeout=5)
213+
except subprocess.TimeoutExpired:
214+
proc.kill()
215+
proc.wait()
211216

212217

213218
@pytest.fixture()

0 commit comments

Comments
 (0)