]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
pytests/kresd: change allowed port range
authorTomas Krizek <tomas.krizek@nic.cz>
Fri, 4 Jan 2019 11:49:05 +0000 (12:49 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 8 Jan 2019 15:48:49 +0000 (16:48 +0100)
Docker uses 32768 - 61000 as ephemeral ports. Don't use
this range for kresd to avoid collisions.

tests/pytests/kresd.py

index 67af01843efe50f7d0862362b5f62a589bc498a7..99446dd8049b2ecd2bf0c9c44bf00d53ff0a7722 100644 (file)
@@ -20,8 +20,8 @@ TEMPLATES_DIR = os.path.join(PYTESTS_DIR, 'templates')
 KRESD_CONF_TEMPLATE = 'kresd.conf.j2'
 KRESD_STARTUP_MSGID = 10005  # special unique ID at the start of the "test" log
 KRESD_PORTDIR = '/tmp/pytest-kresd-portdir'
-KRESD_TESTPORT_MIN = 10000
-KRESD_TESTPORT_MAX = 49000
+KRESD_TESTPORT_MIN = 1024
+KRESD_TESTPORT_MAX = 32768  # avoid overlap with docker ephemeral port range
 
 
 def init_portdir():