yixianOu commented on code in PR #12794:
URL: https://github.com/apache/apisix/pull/12794#discussion_r2626144470
##########
t/xrpc/pingpong.t:
##########
@@ -510,9 +510,9 @@ call pingpong's log, ctx unfinished: false
}
}
)
- if code >= 300 then
+ if code ~= 400 then
ngx.status = code
- ngx.say(body)
+ ngx.say("expected 400 for invalid superior_id, got " .. code
.. ": " .. body)
Review Comment:
Before adding this validation feature, the test expected the invalid routing
rule to be added successfully.
However, after the Lua code changes, the validation logic now expects this
rule to fail to be added, so this test needs to be modified.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]