Skip to content

Commit

Permalink
tests(get) pass with OpenResty 1.11.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Apr 22, 2017
1 parent 1847d68 commit 86149cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
- JOBS=2
matrix:
- OPENRESTY_VER=1.11.2.2
#- OPENRESTY_VER=1.11.2.3
- OPENRESTY_VER=1.11.2.3

install:
- mkdir -p download-cache
Expand Down
12 changes: 8 additions & 4 deletions t/02-get.t
Original file line number Diff line number Diff line change
Expand Up @@ -313,17 +313,21 @@ hello world
end
local str = ngx.shared.cache:get("key")
ngx.say("in shm: ", str)
local json = cjson.encode(data)
ngx.say("returned table: ", json)
ngx.say("LRU == shm: ", str == json)
ngx.say("hello: ", data.hello)
ngx.say("subt.foo: ", data.subt.foo)
}
}
--- request
GET /t
--- response_body
in shm: {"subt":{"foo":"bar"},"hello":"world"}
returned table: {"subt":{"foo":"bar"},"hello":"world"}
LRU == shm: true
hello: world
subt.foo: bar
--- no_error_log
[error]

Expand Down

0 comments on commit 86149cd

Please sign in to comment.