]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
trust_anchors: move test web server to port 8080
authorPetr Špaček <petr.spacek@nic.cz>
Wed, 9 Jan 2019 14:19:30 +0000 (15:19 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 9 Jan 2019 14:30:17 +0000 (15:30 +0100)
This is an attempt to avoid conflicts when executing tests in parallel.

daemon/lua/trust_anchors.test/bootstrap.test.lua
daemon/lua/trust_anchors.test/webserv.lua

index a74ec4e70d433546693adb874fcc2e68868811a9..d5d021867d5aa815cd50bf914ecbf3231eb60be1 100644 (file)
@@ -51,14 +51,14 @@ local function wait_for_webserver()
        local starttime = os.time()
        local connected = false
        while not connected and os.difftime(os.time(), starttime) < 5 do
-               local con = socket.connect("localhost", 8053)
+               local con = socket.connect("localhost", 8080)
                connected, msg = pcall(con.connect, con, 5)
                cqueues.sleep (0.3)
        end
        assert(connected, string.format('unable to connect to web server: %s', msg))
 end
 
-local host = 'https://localhost:8053/'
+local host = 'https://localhost:8080/'
 -- avoid interference with configured KEYFILE_DEFAULT
 trust_anchors.keyfile_default = nil
 
index 7613e86926bc689e9a0336a174fa87e77d558b24..458d3e56c93add542406151a41ac5cc0c20caef4 100644 (file)
@@ -225,7 +225,7 @@ end
 
 local server = M.add_interface({
        host = 'localhost',
-       port = 8053,
+       port = 8080,
        tls = true,
        cert = 'x509/server.pem',
        key = 'x509/server-key.pem'