diff options
author | Jiale Zhi <vipcalio@gmail.com> | 2013-10-29 17:16:40 -0700 |
---|---|---|
committer | Jiale Zhi <vipcalio@gmail.com> | 2013-10-29 17:16:40 -0700 |
commit | f095d0fefa241ed7d2777fca1a1c50239aa2b474 (patch) | |
tree | 88ac02c8219c3f56b2edd324f2f8ecff7fc389e2 | |
parent | c03e4c1adc54a9d0ce418f28ec505c1cb7215432 (diff) | |
download | lua-resty-cookie-f095d0fefa241ed7d2777fca1a1c50239aa2b474.tar.gz lua-resty-cookie-f095d0fefa241ed7d2777fca1a1c50239aa2b474.tar.bz2 lua-resty-cookie-f095d0fefa241ed7d2777fca1a1c50239aa2b474.zip |
Add no_error_log check for test cases
-rw-r--r-- | t/sanity.t | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -5,7 +5,7 @@ use Cwd qw(cwd); repeat_each(2); -plan tests => repeat_each() * (blocks() * 2 + 1); +plan tests => repeat_each() * (blocks() * 3); my $pwd = cwd(); @@ -47,6 +47,8 @@ __DATA__ GET /t --- more_headers Cookie: SID=31d4d96e407aad42; lang=en-US +--- no_error_log +[error] --- response_body SID => 31d4d96e407aad42 lang => en-US @@ -73,6 +75,8 @@ lang => en-US GET /t --- more_headers Cookie: SID=31d4d96e407aad42; lang=en-US +--- no_error_log +[error] --- response_body lang => en-US @@ -87,6 +91,7 @@ lang => en-US local cookie, err = ck:new() if not cookie then ngx.log(ngx.ERR, err) + ngx.say(err) return end @@ -99,6 +104,7 @@ GET /t --- error_log no cookie found in current request --- response_body +no cookie found in current request @@ -125,6 +131,8 @@ no cookie found in current request GET /t --- more_headers Cookie: SID= +--- no_error_log +[error] --- response_body SID => @@ -152,5 +160,7 @@ SID => --- request GET /t --- more_headers eval: "Cookie: SID=foo\t" +--- no_error_log +[error] --- response_body SID => foo |