소스 검색

[fix] robot test - kill the only subprocess

Adam Tauber 10 년 전
부모
커밋
f1fc315318
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    3
      searx/testing.py

+ 1
- 3
searx/testing.py 파일 보기

@@ -56,9 +56,7 @@ class SearxRobotLayer(Layer):
56 56
         )
57 57
 
58 58
     def tearDown(self):
59
-        # send TERM signal to all processes in my group, to stop subprocesses
60
-        os.killpg(os.getpgid(self.server.pid), 15)
61
-
59
+        os.kill(self.server.pid, 15)
62 60
         # remove previously set environment variable
63 61
         del os.environ['SEARX_SETTINGS_PATH']
64 62