diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3036caca..e758d258 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/t/012-tls_disable_http2_alpn.t b/t/012-tls_disable_http2_alpn.t index ba044bfb..527b63d2 100644 --- a/t/012-tls_disable_http2_alpn.t +++ b/t/012-tls_disable_http2_alpn.t @@ -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 @@ -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 @@ -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