Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Sep 25, 2024
1 parent 8e40b59 commit d88a261
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ jobs:
openssl version
prove -r t
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
- name: Run Test with Valgrind
run: |
source ${{ env.BUILD_ROOT }}/kong-dev-venv.sh
Expand Down
22 changes: 19 additions & 3 deletions t/012-tls_disable_http2_alpn.t
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ __DATA__
return
end

ngx.log(ngx.ERR, stdout_data)
ngx.log(ngx.ERR, stderr_data)

if string.find(stdout_data, "ALPN: server accepted h2") ~= nil then
ngx.say("alpn server accepted h2")
return
Expand All @@ -76,6 +73,15 @@ __DATA__
ngx.say("alpn server accepted http/1.1")
return
end
if string.find(stdout_data, "ALPN, server accepted to use h2") ~= nil then
ngx.say("alpn server accepted h2")
return
end

if string.find(stderr_data, " ALPN, server accepted to use http/1.1") ~= nil then
ngx.say("alpn server accepted http/1.1")
return
end
}
}
--- request
Expand Down Expand Up @@ -142,6 +148,16 @@ alpn server accepted http/1.1
ngx.say("alpn server accepted http/1.1")
return
end

if string.find(stdout_data, "ALPN, server accepted to use h2") ~= nil then
ngx.say("alpn server accepted h2")
return
end

if string.find(stderr_data, " ALPN, server accepted to use http/1.1") ~= nil then
ngx.say("alpn server accepted http/1.1")
return
end
}
}
--- request
Expand Down

0 comments on commit d88a261

Please sign in to comment.