Skip to content

Commit

Permalink
test: gzip test may fail because size may be validated before number (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander authored Sep 18, 2021
1 parent 353927a commit 46cabd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/plugin/gzip.t
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,10 @@ Vary: upstream, Accept-Encoding
{input = {
buffers = {
number = 0,
}
}},
{input = {
buffers = {
size = 0,
}
}},
Expand All @@ -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"}

0 comments on commit 46cabd6

Please sign in to comment.