From 53b248dec1d0ec1f2be0dee56402f86df70f3acc Mon Sep 17 00:00:00 2001 From: An Tran Date: Mon, 20 Nov 2023 17:02:40 +1000 Subject: [PATCH] Correct the integration test --- t/apicast-policy-request-unbuffered.t | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/t/apicast-policy-request-unbuffered.t b/t/apicast-policy-request-unbuffered.t index 64d05ff9b..671e2c9d2 100644 --- a/t/apicast-policy-request-unbuffered.t +++ b/t/apicast-policy-request-unbuffered.t @@ -61,9 +61,10 @@ server_name test-upstream.lvh.me; --- response_body eval chomp $ENV{LARGE_BODY} --- error_code: 200 ---- grep_error_log -a client request body is buffered to a temporary file +--- grep_error_log eval +qr/a client request body is buffered to a temporary file/ --- grep_error_log_out +a client request body is buffered to a temporary file --- no_error_log [error] @@ -107,7 +108,6 @@ server_name test-upstream.lvh.me; location / { access_by_lua_block { assert = require('luassert') - ngx.say("yay, api backend") -- Nginx will read the entire body in one chunk, the upstream request will not be chunked -- and Content-Length header will be added. @@ -203,8 +203,9 @@ $s --- response_body eval $::data --- error_code: 200 ---- grep_error_log -a client request body is buffered to a temporary file +--- grep_error_log eval +qr/a client request body is buffered to a temporary file/ --- grep_error_log_out +a client request body is buffered to a temporary file --- no_error_log [error]