Skip to content

Commit

Permalink
Fix throttle policy reset tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Avishka-Shamendra committed Oct 16, 2024
1 parent d851017 commit 0b8235c
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,6 @@ public void testResetPolicyWithRequestCountLimit() throws Exception {
checkThrottling(apiInvocationUrlForRequestCount, requestHeadersForRequestCount, 5);

String userId = requestCountApplicationDTO.getOwner();
if (userId != null && userId.contains("@")) {
userId = userId.substring(0, userId.lastIndexOf("@"));
}

// reset the application policy
org.wso2.am.integration.clients.store.api.ApiResponse<Void> resetResponse =
Expand All @@ -237,9 +234,6 @@ public void testResetPolicyWithBandwidthLimit() throws Exception {
checkThrottling(apiInvocationUrlForBandwidth, requestHeadersForBandwidth, 5);

String userId = bandwidthApplicationDTO.getOwner();
if (userId != null && userId.contains("@")) {
userId = userId.substring(0, userId.lastIndexOf("@"));
}

// reset the application policy
org.wso2.am.integration.clients.store.api.ApiResponse<Void> resetResponse =
Expand Down

0 comments on commit 0b8235c

Please sign in to comment.