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 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 e04ece2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/003-grpc.t
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,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 e04ece2

Please sign in to comment.