fixed a test case in 068-socket-keepalive.t by properly flushing the redis store first.

This commit is contained in:
agentzh (Yichun Zhang) 2012-09-13 15:21:49 -07:00
Родитель 62a0b69609
Коммит 5b5a02dbed
2 изменённых файлов: 19 добавлений и 1 удалений

Просмотреть файл

@ -1346,7 +1346,24 @@ bad argument #3 to 'connect' (bad "pool" option type: boolean)
=== TEST 22: bug in send(): clear the chain writer ctx
=== TEST 22: clear the redis store
--- config
location /t {
redis2_query flushall;
redis2_pass 127.0.0.1:$TEST_NGINX_REDIS_PORT;
}
--- request
GET /t
--- response_body eval
"+OK\r\n"
--- no_error_log
[error]
[alert]
[warn]
=== TEST 23: bug in send(): clear the chain writer ctx
--- http_config eval
"lua_package_path '$::HtmlDir/?.lua;./?.lua';"
--- config

Просмотреть файл

@ -43,6 +43,7 @@ time ngx-build $force $version \
--add-module=$home/work/nginx/ngx_http_upstream_keepalive-0.7 \
--add-module=$root/../rds-json-nginx-module \
--add-module=$root/../coolkit-nginx-module \
--add-module=$root/../redis2-nginx-module \
--with-select_module \
--with-poll_module \
--with-rtsig_module \