From: Petr Špaček Date: Wed, 9 Jan 2019 14:19:30 +0000 (+0100) Subject: trust_anchors: move test web server to port 8080 X-Git-Tag: v3.2.1~5^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=006926c27a4470fda8dd37463095b920ea57eb8d;p=thirdparty%2Fknot-resolver.git trust_anchors: move test web server to port 8080 This is an attempt to avoid conflicts when executing tests in parallel. --- diff --git a/daemon/lua/trust_anchors.test/bootstrap.test.lua b/daemon/lua/trust_anchors.test/bootstrap.test.lua index a74ec4e70..d5d021867 100644 --- a/daemon/lua/trust_anchors.test/bootstrap.test.lua +++ b/daemon/lua/trust_anchors.test/bootstrap.test.lua @@ -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 diff --git a/daemon/lua/trust_anchors.test/webserv.lua b/daemon/lua/trust_anchors.test/webserv.lua index 7613e8692..458d3e56c 100644 --- a/daemon/lua/trust_anchors.test/webserv.lua +++ b/daemon/lua/trust_anchors.test/webserv.lua @@ -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'