]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/trust_anchors.test: increase max timeout
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 28 Jan 2019 11:09:18 +0000 (12:09 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Mon, 28 Jan 2019 11:48:01 +0000 (12:48 +0100)
Our CI environment requires a longer timeout during
high-load.

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

index d5d021867d5aa815cd50bf914ecbf3231eb60be1..0fad935a18b0470ccce0e0632b0c600e0383e3f9 100644 (file)
@@ -50,9 +50,9 @@ end
 local function wait_for_webserver()
        local starttime = os.time()
        local connected = false
-       while not connected and os.difftime(os.time(), starttime) < 5 do
+       while not connected and os.difftime(os.time(), starttime) < 10 do
                local con = socket.connect("localhost", 8080)
-               connected, msg = pcall(con.connect, con, 5)
+               connected, msg = pcall(con.connect, con, 3)
                cqueues.sleep (0.3)
        end
        assert(connected, string.format('unable to connect to web server: %s', msg))