From 263ed9c13181822dc2f641da2ea0ccb8e949f360 Mon Sep 17 00:00:00 2001 Message-Id: <263ed9c13181822dc2f641da2ea0ccb8e949f360.1717520266.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 18 Jul 2009 13:43:11 +0100 Subject: [PATCH] Leave a bit of headroom above test port number, since we go at least one above it. Almost certainly the cause of issue #36. Organization: Straylight/Edgeware From: Richard Kettlewell --- tests/dtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dtest.py b/tests/dtest.py index e2fed30..8a4644a 100644 --- a/tests/dtest.py +++ b/tests/dtest.py @@ -202,10 +202,10 @@ def common_setup(): os.mkdir(testroot) # Choose a port global port - port = random.randint(49152, 65535) + port = random.randint(49152, 65530) while not bindable(port + 1): print "port %d is not bindable, trying another" % (port + 1) - port = random.randint(49152, 65535) + port = random.randint(49152, 65530) # Log anything sent to that port packetlog = "%s/packetlog" % testroot subprocess.Popen(["disorder-udplog", -- [mdw]