summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2015-04-28 20:26:40 +0200
committerPatrick Uiterwijk <puiterwijk@redhat.com>2015-04-28 21:50:28 +0200
commitf1ecda1fe05e3f7d5c0a1a5d33d11c619442416f (patch)
tree93b820e115b8ea3246f29908a6ed1ec96a046ec2
parent6cab72d741afa20dd640f3bfd53b3c266356027f (diff)
downloadipsilon.git-f1ecda1fe05e3f7d5c0a1a5d33d11c619442416f.tar.gz
ipsilon.git-f1ecda1fe05e3f7d5c0a1a5d33d11c619442416f.tar.xz
ipsilon.git-f1ecda1fe05e3f7d5c0a1a5d33d11c619442416f.zip
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 <puiterwijk@redhat.com> Reviewed-by: Rob Crittenden <rcritten@redhat.com>
-rwxr-xr-xtests/tests.py3
1 files changed, 3 insertions, 0 deletions
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"