jerrypeng commented on a change in pull request #3168: Refactor api commands URL: https://github.com/apache/pulsar/pull/3168#discussion_r242366045
########## File path: pulsar-functions/worker/src/test/java/org/apache/pulsar/functions/worker/rest/api/v2/FunctionApiV2ResourceTest.java ########## @@ -784,15 +761,9 @@ private void testUpdateFunctionMissingArguments( new Gson().toJson(functionConfig), null); - if (expectedError == null) { - assertEquals(Status.OK.getStatusCode(), response.getStatus()); - } else { - assertEquals(Status.BAD_REQUEST.getStatusCode(), response.getStatus()); Review comment: we should check status code ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services