Skip to content

Commit

Permalink
resolve code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tzssangglass committed Jul 27, 2022
1 parent 37dcae0 commit f1f71f2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions t/node/consumer-plugin2.t
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -277,7 +282,7 @@ x-real-ip: 127.0.0.1
},
"uri": "/hello"
}]]
)
)
if code >= 300 then
ngx.status = code
Expand Down

0 comments on commit f1f71f2

Please sign in to comment.