diff options
Diffstat (limited to 'scripts/ci/openresty/delay-api.lua')
-rw-r--r-- | scripts/ci/openresty/delay-api.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/ci/openresty/delay-api.lua b/scripts/ci/openresty/delay-api.lua new file mode 100644 index 0000000..aa4f61b --- /dev/null +++ b/scripts/ci/openresty/delay-api.lua @@ -0,0 +1,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") |