Skip to content

Commit

Permalink
tests(grpc): fix failing test by replacing listen ... http2 by `htt…
Browse files Browse the repository at this point in the history
…p2 on` to avoid the deprecation message

To avoid message:

[warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /home/runner/work/lua-kong-nginx-module/lua-kong-nginx-module/t/servroot/conf/nginx.conf:28
  • Loading branch information
ADD-SP committed Feb 8, 2024
1 parent 6cfc257 commit 7fca3be
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions t/003-grpc.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ __DATA__
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;
server_tokens off;
Expand Down Expand Up @@ -57,7 +58,8 @@ GET /t
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock
http2 on;
server_name example.com;
server_tokens off;
Expand Down Expand Up @@ -99,7 +101,8 @@ GET /t
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;
server_tokens off;
Expand Down Expand Up @@ -142,7 +145,8 @@ GET /t
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;
server_tokens off;
Expand Down Expand Up @@ -185,7 +189,8 @@ GET /t
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;
server_tokens off;
Expand Down Expand Up @@ -231,7 +236,8 @@ falseincorrect argument, expects a string, got number
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen 127.0.0.1:12346 http2;
listen 127.0.0.1:12346;
http2 on;
server_name example.com;
server_tokens off;
Expand Down

0 comments on commit 7fca3be

Please sign in to comment.