From f1ecda1fe05e3f7d5c0a1a5d33d11c619442416f Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 28 Apr 2015 20:26:40 +0200 Subject: Insert a small timeout before reporting the test successful This is so the OS gets enough time to clean up all of the sockets used during the execution of the test. Without this, sometimes a "port already in use" error will fail the next test. Signed-off-by: Patrick Uiterwijk Reviewed-by: Rob Crittenden --- tests/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tests.py b/tests/tests.py index 6dfd8c4..a8b42e4 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -23,6 +23,7 @@ from ipsilon.util import plugin import os import sys import subprocess +import time import traceback @@ -103,4 +104,6 @@ if __name__ == '__main__': finally: test.wait() + # Wait until all of the sockets are closed by the OS + time.sleep(0.5) print "FINISHED" -- cgit