Don't wait during selftest process cleanup
authorJeremy Stanley <fungi@yuggoth.org>
Sat, 17 Apr 2021 16:05:03 +0000 (16:05 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sat, 17 Apr 2021 16:05:03 +0000 (16:05 +0000)
Remove an unconditional one-second delay after executing kill during
process cleanup. Subsequent torture tests indicate this was likely
unnecessary, but it slowed down testing considerably.

mudpy/tests/selftest.py

index 88b95c0..bb6f28a 100644 (file)
@@ -461,7 +461,6 @@ def start_service(config):
         try:
             # Stop the running service
             os.kill(pid, 15)
         try:
             # Stop the running service
             os.kill(pid, 15)
-            time.sleep(1)
         except ProcessLookupError:
             # If there was no process, just remove the stale PID file
             os.remove(pidfile)
         except ProcessLookupError:
             # If there was no process, just remove the stale PID file
             os.remove(pidfile)