Skip to content

Commit

Permalink
fix(plugins/bk-traffic-label.lua): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Nov 15, 2024
1 parent 6954909 commit f81fe7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/apisix/plugins/bk-traffic-label.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function _M.check_schema(conf)
-- Validate the match expression
local _, err2 = expr.new(rule.match)
if err2 then
core.log.error("failed to validate the 'match' expression: ", err)
return false, "failed to validate the 'match' expression: " .. err
core.log.error("failed to validate the 'match' expression: ", err2)
return false, "failed to validate the 'match' expression: " .. err2
end
end

Expand Down
8 changes: 4 additions & 4 deletions src/apisix/tests/test-bk-traffic-label.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe(
)

context(
"1 ruls: 1 match 1 action", function()
"1 rules: 1 match 1 action", function()
before_each(
function()
conf = {
Expand Down Expand Up @@ -141,7 +141,7 @@ describe(
)

context(
"1 ruls: 1 match 2 actions, with weight", function()
"1 rules: 1 match 2 actions, with weight", function()
before_each(
function()
conf = {
Expand Down Expand Up @@ -183,7 +183,7 @@ describe(
)

context(
"1 ruls: 1 match 2 actions, one with weight 0", function()
"1 rules: 1 match 2 actions, one with weight 0", function()
before_each(
function()
conf = {
Expand Down Expand Up @@ -225,7 +225,7 @@ describe(
)

context(
"1 ruls: 1 match 2 actions, one with weight 0, another weight no set_headers", function()
"1 rules: 1 match 2 actions, one with weight 0, another weight no set_headers", function()
before_each(
function()
conf = {
Expand Down

0 comments on commit f81fe7e

Please sign in to comment.