From c174ad1c46271d42bce677802105a57ea63f697a Mon Sep 17 00:00:00 2001 From: Alexander Lee Date: Wed, 23 Aug 2023 15:12:28 +0800 Subject: [PATCH] chore: remove test for concurrent viewed call --- src/integration/Reviews.spec.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/integration/Reviews.spec.ts b/src/integration/Reviews.spec.ts index 71ec93b97..8075f2ebc 100644 --- a/src/integration/Reviews.spec.ts +++ b/src/integration/Reviews.spec.ts @@ -719,23 +719,6 @@ describe("Review Requests Integration Tests", () => { // Assert expect(actual.statusCode).toEqual(404) }) - - it("should not throw an error if two sub-sequent calls are being made", async () => { - const app = generateRouterForUserWithSite( - subrouter, - MOCK_USER_SESSION_DATA_TWO, - MOCK_REPO_NAME_ONE - ) - - // Act - const promises = await Promise.all([ - request(app).post(`/${MOCK_REPO_NAME_ONE}/viewed`), - request(app).post(`/${MOCK_REPO_NAME_ONE}/viewed`), - ]) - // Assert - expect(promises[0].statusCode).toEqual(200) - expect(promises[1].statusCode).toEqual(200) - }) }) describe("/:requestId GET", () => {