added tests for the "ngx_slab_alloc() failed: no memory" error message. these require the patch https://github.com/agentzh/ngx_openresty/blob/master/patches/nginx-1.2.4-slab_alloc_no_memory_as_info.patch
This commit is contained in:
Родитель
15fac2963b
Коммит
3583cb08d5
|
@ -8,7 +8,7 @@ use Test::Nginx::Socket;
|
|||
|
||||
#repeat_each(2);
|
||||
|
||||
plan tests => repeat_each() * (blocks() * 2 + 5);
|
||||
plan tests => repeat_each() * (blocks() * 2 + 7);
|
||||
|
||||
#no_diff();
|
||||
no_long_string();
|
||||
|
@ -373,6 +373,9 @@ false expecting exactly two arguments, but only seen 1
|
|||
GET /test
|
||||
--- response_body
|
||||
false no memory false
|
||||
--- log_level: info
|
||||
--- error_log eval
|
||||
qr/\[info\] .* ngx_slab_alloc\(\) failed: no memory in lua_shared_dict zone "dogs"/
|
||||
|
||||
|
||||
|
||||
|
@ -643,6 +646,9 @@ hello
|
|||
GET /test
|
||||
--- response_body
|
||||
false no memory true
|
||||
--- log_level: info
|
||||
--- error_log eval
|
||||
qr/\[info\] .* ngx_slab_alloc\(\) failed: no memory in lua_shared_dict zone "dogs"/
|
||||
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче