Skip to content

Commit

Permalink
tests(proxy) increase reload delay to improve reliability
Browse files Browse the repository at this point in the history
Work around the intermittent Travis failures we keep getting,
by increasing the delay in `error_default_type_spec.lua` tests
to 1 second.

These tests are failing because they update the configuration,
run `kong reload`, wait for an arbitrary amount of time, then
run the test. This arbitrary amount of time (currently 0.5s)
is not always enough, so while increasing it is not a real
solution to the problem, at least it can make our Travis tests
pass on these, so that the fail/pass status in the Travis/Github
integration becomes useful again.

See Kong#2803
From Kong#2805
  • Loading branch information
hishamhm authored and thibaultcha committed Aug 18, 2017
1 parent fb95b9f commit 8618462
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local cjson = require "cjson"


local S502_MESSAGE = "An invalid response was received from the upstream server"
local RELOAD_DELAY = 0.5
local RELOAD_DELAY = 1.0


describe("error_default_type", function()
Expand Down

0 comments on commit 8618462

Please sign in to comment.