Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] robot test - kill the only subprocess

Adam Tauberf1fc315318a6
diff --git a/searx/testing.py b/searx/testing.py
index 51c44d826..e22ecf8fe 100644
--- a/searx/testing.py
+++ b/searx/testing.py
@@ -56,9 +56,7 @@ class SearxRobotLayer(Layer):
)
def tearDown(self):
- # send TERM signal to all processes in my group, to stop subprocesses
- os.killpg(os.getpgid(self.server.pid), 15)
-
+ os.kill(self.server.pid, 15)
# remove previously set environment variable
del os.environ['SEARX_SETTINGS_PATH']