summaryrefslogtreecommitdiffstats
path: root/scripts/ci/openresty/delay-api.lua
blob: aa4f61b99e94a214fdd9c1f145b5b76315f57830 (plain)
1
2
3
4
5
6
-- Simple API represending a slow response for testing timeouts

local t0 = os.clock()
while os.clock() - t0 <= 2 do end

ngx.say("Delayed response")