diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/streamingapis/async/AsyncAPITestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/streamingapis/async/AsyncAPITestCase.java index e0f227d31e..cc08373f1b 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/streamingapis/async/AsyncAPITestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/streamingapis/async/AsyncAPITestCase.java @@ -157,7 +157,8 @@ public void testPublishAsyncApi() throws Exception { try { revisionUUID = createAPIRevisionAndDeployUsingRest(apiId, restAPIPublisher); } catch (ApiException e) { - Assert.assertTrue(e.getMessage().contains("Error while adding new API Revision for API : ")); + Assert.assertTrue(e.getMessage().contains("Error while adding new API Revision for API : ") + || e.getMessage().contains("Creating API Revisions is not supported")); } if (revisionUUID != null) { Assert.fail();