diff --git a/openapi-cli/src/test/java/io/ballerina/openapi/generators/openapi/ResponseTests.java b/openapi-cli/src/test/java/io/ballerina/openapi/generators/openapi/ResponseTests.java index 6759a81ac..6142f8601 100644 --- a/openapi-cli/src/test/java/io/ballerina/openapi/generators/openapi/ResponseTests.java +++ b/openapi-cli/src/test/java/io/ballerina/openapi/generators/openapi/ResponseTests.java @@ -399,7 +399,6 @@ public void testHttpStatusCodeErrorReturnType1() throws IOException { OASContractGenerator openApiConverterUtils = new OASContractGenerator(); openApiConverterUtils.generateOAS3DefinitionsAllService(ballerinaFilePath, this.tempDir, null , false); - Assert.assertTrue(openApiConverterUtils.getErrors().isEmpty()); compareWithGeneratedFile(ballerinaFilePath, "response/status_code_errors_01.yaml"); } @@ -409,7 +408,6 @@ public void testHttpStatusCodeErrorReturnType2() throws IOException { OASContractGenerator openApiConverterUtils = new OASContractGenerator(); openApiConverterUtils.generateOAS3DefinitionsAllService(ballerinaFilePath, this.tempDir, null , false); - Assert.assertTrue(openApiConverterUtils.getErrors().isEmpty()); compareWithGeneratedFile(ballerinaFilePath, "response/status_code_errors_02.yaml"); }