From 21a18fbbb92074d693ada1b7156b9a2e6e33672e Mon Sep 17 00:00:00 2001 From: ike thecoder Date: Mon, 15 Apr 2024 10:31:46 -0700 Subject: [PATCH] Update 02-rate-limiting.cy.ts (#1039) --- .../tests/07-manage-control/02-rate-limiting.cy.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e/cypress/tests/07-manage-control/02-rate-limiting.cy.ts b/e2e/cypress/tests/07-manage-control/02-rate-limiting.cy.ts index e7296070e..6b99859b4 100644 --- a/e2e/cypress/tests/07-manage-control/02-rate-limiting.cy.ts +++ b/e2e/cypress/tests/07-manage-control/02-rate-limiting.cy.ts @@ -57,11 +57,11 @@ describe('Manage Control-Rate Limiting Spec for Service as Scope and Local Polic cy.get('@apiowner').then(({ product }: any) => { cy.makeKongRequest(product.environment.config.serviceName, 'GET').then((response) => { expect(response.status).to.be.equal(200) - }) - cy.makeKongRequest(product.environment.config.serviceName, 'GET').then((response) => { - expect(response.status).to.be.equal(429) - expect(response.body.message).to.be.contain('API rate limit exceeded') - }) + cy.makeKongRequest(product.environment.config.serviceName, 'GET').then((response) => { + expect(response.status).to.be.equal(429) + expect(response.body.message).to.be.contain('API rate limit exceeded') + }) + }) }) }) }) @@ -273,4 +273,4 @@ describe('Manage Control-Apply Rate limiting to Global and Consumer at Route lev after(() => { cy.logout() }) -}) \ No newline at end of file +})