Skip to content

Commit a9c89e9

Browse files
committed
tests: fixed a few failing test cases due to loading resty.core.
1 parent c42e708 commit a9c89e9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

t/035-gmatch.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,9 @@ function go()
380380
end
381381
--- stream_response
382382
matched
383-
--- error_log
384-
attempt to use ngx.re.gmatch iterator in a request that did not create it
383+
matched
384+
--- no_error_log
385+
[error]
385386
386387
387388

t/043-shdict.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ bad "zone" argument
19171917
}
19181918
--- stream_response
19191919
--- error_log
1920-
bad user data for the ngx_shm_zone_t pointer
1920+
bad "zone" argument
19211921

19221922

19231923

t/062-count.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ n = 8
121121
ngx.say("n = ", n)
122122
}
123123
--- stream_response
124-
n = 18
124+
n = 22
125125
--- no_error_log
126126
[error]
127127

t/123-lua-path.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ env LUA_CPATH;
3434
ngx.say(package.cpath)
3535
}
3636
--- stream_response
37-
/foo/bar/baz
37+
../lua-resty-core/lib/?.lua;../lua-resty-lrucache/lib/?.lua;/foo/bar/baz
3838
/baz/bar/foo
3939

4040
--- no_error_log
@@ -54,7 +54,7 @@ env LUA_CPATH;
5454
ngx.say(package.cpath)
5555
}
5656
--- stream_response
57-
/foo/bar/baz
57+
../lua-resty-core/lib/?.lua;../lua-resty-lrucache/lib/?.lua;/foo/bar/baz
5858
/baz/bar/foo
5959

6060
--- no_error_log

0 commit comments

Comments
 (0)