diff --git a/t/023-rewrite/unix-socket.t b/t/023-rewrite/unix-socket.t index 2c614799..d19ba8ca 100644 --- a/t/023-rewrite/unix-socket.t +++ b/t/023-rewrite/unix-socket.t @@ -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} diff --git a/t/059-unix-socket.t b/t/059-unix-socket.t index 0366d182..69edf23f 100644 --- a/t/059-unix-socket.t +++ b/t/059-unix-socket.t @@ -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} +