From 8259e8d99e5c54e84f3078bec44e8c73d687cc4c Mon Sep 17 00:00:00 2001 From: windmgc Date: Wed, 21 Aug 2024 15:25:37 +0800 Subject: [PATCH] tests(*): remove unnecessary mock func --- spec/fixtures/aws-lambda.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spec/fixtures/aws-lambda.lua b/spec/fixtures/aws-lambda.lua index d8f7a1e20e3b..e74aa840a795 100644 --- a/spec/fixtures/aws-lambda.lua +++ b/spec/fixtures/aws-lambda.lua @@ -74,10 +74,6 @@ local fixtures = { ngx.header["Content-Type"] = "application/json" ngx.say("{\"statusCode\": 200, \"isBase64Encoded\": true, \"body\": \"eyJrZXkiOiAidmFsdWUiLCAia2V5MiI6IFtdfQ==\", \"headers\": {}, \"multiValueHeaders\": {\"Content-Type\": [\"application/json+test\"]}}") - -- elseif string.match(ngx.var.uri, "functionWithNullMultiValueHeaders") then - -- ngx.header["Content-Type"] = "application/json" - -- ngx.say("{\"statusCode\": 200, \"headers\": { \"Age\": \"3600\"}, \"multiValueHeaders\": null}") - elseif type(res) == 'string' then ngx.header["Content-Length"] = #res + 1 ngx.say(res)