diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/throttling/JWTRequestCountThrottlingTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/throttling/JWTRequestCountThrottlingTestCase.java index 78c46d5f71..c6695cf700 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/throttling/JWTRequestCountThrottlingTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/throttling/JWTRequestCountThrottlingTestCase.java @@ -367,14 +367,14 @@ public void testAPILevelThrottlingWithIpCondition() throws Exception { requestHeaders.put("content-type", "application/json"); requestHeaders.put("X-Forwarded-For", "10.100.1.22"); - Assert.assertFalse(isThrottled(requestHeaders, null, 12), + Assert.assertFalse(isThrottled(requestHeaders, null, -1), "Request was throttled unexpectedly in Unlimited API tier"); apidto.setApiThrottlingPolicy(apiPolicyName2); updatedAPI = restAPIPublisher.updateAPI(apidto, apiId); Assert.assertEquals(updatedAPI.getApiThrottlingPolicy(), apiPolicyName2, "API tier not updated."); - Assert.assertFalse(isThrottled(requestHeaders, null, 12), "Request not need to throttle since policy was " + + Assert.assertFalse(isThrottled(requestHeaders, null, -1), "Request not need to throttle since policy was " + "Unlimited"); // Create Revision and Deploy to Gateway createAPIRevisionAndDeployUsingRest(apiId, restAPIPublisher);