From f1f71f267f879887657b7bb29a9a73cf8300df57 Mon Sep 17 00:00:00 2001 From: tzssangglass Date: Wed, 27 Jul 2022 16:04:42 +0800 Subject: [PATCH] resolve code review --- t/node/consumer-plugin2.t | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/t/node/consumer-plugin2.t b/t/node/consumer-plugin2.t index b69636634037..c05762f40e2d 100644 --- a/t/node/consumer-plugin2.t +++ b/t/node/consumer-plugin2.t @@ -261,7 +261,12 @@ x-real-ip: 127.0.0.1 } } }]] - ) + ) + if code >= 300 then + ngx.status = code + ngx.say(body) + return + end local code, body = t('/apisix/admin/routes/1', ngx.HTTP_PUT, @@ -277,7 +282,7 @@ x-real-ip: 127.0.0.1 }, "uri": "/hello" }]] - ) + ) if code >= 300 then ngx.status = code