From: Jeremy Stanley Date: Sat, 17 Apr 2021 16:05:03 +0000 (+0000) Subject: Don't wait during selftest process cleanup X-Git-Tag: 0.4.0~2 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;ds=inline;h=3679895b52c48070dd874b92e2b7e01dcd232feb;hp=787d1bc42c8b9cde309709f520e254e66a23ff8d;p=mudpy.git Don't wait during selftest process cleanup 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. --- diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index 88b95c0..bb6f28a 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -461,7 +461,6 @@ def start_service(config): 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)