Skip to content

Commit

Permalink
tests: hardened a few JIT-related tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Feb 11, 2019
1 parent bc35e8e commit fc141ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions t/ndk.t
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ __DATA__
ngx.say(set_unescape_uri("a%20b"))

local res
for i = 1, $TEST_NGINX_HOTLOOP + 2 do
for i = 1, $TEST_NGINX_HOTLOOP * 5 do
res = set_escape_uri(" :")
end

for i = 1, $TEST_NGINX_HOTLOOP + 2 do
for i = 1, $TEST_NGINX_HOTLOOP * 5 do
res = set_unescape_uri("a%20b")
end
}
Expand Down
12 changes: 6 additions & 6 deletions t/request.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ __DATA__
content_by_lua_block {
local ffi = require "ffi"
local headers
for i = 1, 300 do
for i = 1, 500 do
headers = ngx.req.get_headers()
end
local keys = {}
Expand Down Expand Up @@ -66,7 +66,7 @@ qr/ -- NYI: (?!return to lower frame)/,
content_by_lua_block {
local ffi = require "ffi"
local headers
for i = 1, 300 do
for i = 1, 500 do
headers = ngx.req.get_headers(100, true)
end
local keys = {}
Expand Down Expand Up @@ -106,7 +106,7 @@ qr/\[TRACE\s+\d+ .*? -> \d+\]/
content_by_lua_block {
local ffi = require "ffi"
local headers
for i = 1, 300 do
for i = 1, 500 do
headers = ngx.req.get_headers(2, true)
end
local keys = {}
Expand Down Expand Up @@ -143,7 +143,7 @@ qr/\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\]/
content_by_lua_block {
local ffi = require "ffi"
local headers, header
for i = 1, 100 do
for i = 1, 500 do
headers = ngx.req.get_headers()
header = headers["foo_BAR"]
end
Expand Down Expand Up @@ -185,7 +185,7 @@ qr/ -- NYI: (?!return to lower frame at)(?!C function 0x[0-9a-f]+ at content_by_
content_by_lua_block {
local ffi = require "ffi"
local args
for i = 1, 300 do
for i = 1, 500 do
args = ngx.req.get_uri_args()
end
if type(args) ~= "table" then
Expand Down Expand Up @@ -229,7 +229,7 @@ qr/\[TRACE\s+\d+ .*? -> \d+\]/
content_by_lua_block {
local ffi = require "ffi"
local args
for i = 1, 300 do
for i = 1, 500 do
args = ngx.req.get_uri_args()
end
if type(args) ~= "table" then
Expand Down

0 comments on commit fc141ce

Please sign in to comment.