From 46cabd6b9e1e76baf27c1f153e02ad9127894abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Sat, 18 Sep 2021 14:47:26 +0800 Subject: [PATCH] test: gzip test may fail because size may be validated before number (#5097) --- t/plugin/gzip.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/plugin/gzip.t b/t/plugin/gzip.t index e7582ebadfd9..c76883189764 100644 --- a/t/plugin/gzip.t +++ b/t/plugin/gzip.t @@ -512,6 +512,10 @@ Vary: upstream, Accept-Encoding {input = { buffers = { number = 0, + } + }}, + {input = { + buffers = { size = 0, } }}, @@ -538,4 +542,5 @@ Vary: upstream, Accept-Encoding {"error_msg":"failed to check the configuration of plugin gzip err: property \"comp_level\" validation failed: expected 10 to be smaller than 9"} {"error_msg":"failed to check the configuration of plugin gzip err: property \"http_version\" validation failed: matches none of the enum values"} {"error_msg":"failed to check the configuration of plugin gzip err: property \"buffers\" validation failed: property \"number\" validation failed: expected 0 to be greater than 1"} +{"error_msg":"failed to check the configuration of plugin gzip err: property \"buffers\" validation failed: property \"size\" validation failed: expected 0 to be greater than 1"} {"error_msg":"failed to check the configuration of plugin gzip err: property \"vary\" validation failed: wrong type: expected boolean, got number"}