tests: suppressed a warning from the test scaffold due to an expected [crit] error log message in 2 test cases.

This commit is contained in:
Yichun Zhang (agentzh) 2014-09-24 15:30:47 -07:00
Родитель c9128e50f9
Коммит 25c4bdd6b6
2 изменённых файлов: 7 добавлений и 2 удалений

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

@ -5,7 +5,7 @@ use Test::Nginx::Socket::Lua;
repeat_each(2);
plan tests => blocks() * repeat_each() * 2;
plan tests => repeat_each() * (2 * blocks() + 1);
$ENV{TEST_NGINX_HTML_DIR} ||= html_dir();
@ -45,6 +45,8 @@ connect: nil no such file or directory
send: nil closed
receive: nil closed
close: nil closed
--- error_log eval
qr{\[crit\] .*? connect\(\) to unix:/tmp/nosuchfile\.sock failed}

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

@ -5,7 +5,7 @@ use Test::Nginx::Socket::Lua;
repeat_each(2);
plan tests => blocks() * repeat_each() * 2;
plan tests => repeat_each() * (blocks() * 2 + 1);
$ENV{TEST_NGINX_HTML_DIR} ||= html_dir();
@ -43,6 +43,9 @@ connect: nil no such file or directory
send: nil closed
receive: nil closed
close: nil closed
--- error_log eval
qr{\[crit\] .*? connect\(\) to unix:/tmp/nosuchfile\.sock failed}