summaryrefslogtreecommitdiff
path: root/lua-resty-redis-0.31/t/version.t
blob: 63c34e84c9802d84e35cbf443a56f08f0c37d953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# vim:set ft= ts=4 sw=4 et:

use t::Test;

repeat_each(2);

plan tests => repeat_each() * (3 * blocks());

run_tests();

__DATA__

=== TEST 1: basic
--- global_config eval: $::GlobalConfig
--- server_config
        content_by_lua '
            local redis = require "resty.redis"
            ngx.say(redis._VERSION)
        ';
--- response_body_like chop
^\d+\.\d+$
--- no_error_log
[error]