From 20e91243a138a184ebaebda93b9131c0f959e16d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20M=C3=A9ndez=20Murias?= Date: Fri, 23 Feb 2024 09:05:40 +0100 Subject: [PATCH] Another timeout change --- gatewayservice/gateway-service.test.js | 3 +-- question_generator/questionGenerationService.test.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gatewayservice/gateway-service.test.js b/gatewayservice/gateway-service.test.js index 2bb40bd0..9421c086 100644 --- a/gatewayservice/gateway-service.test.js +++ b/gatewayservice/gateway-service.test.js @@ -40,7 +40,6 @@ describe('Gateway Service', () => { // Test /api/questions/create endpoint it('should forward create question request to question generation service', async () => { - jest.setTimeout(100000); const response = await request(app) .get('/api/questions/create'); @@ -48,7 +47,7 @@ describe('Gateway Service', () => { expect(response.body).toHaveProperty('question'); expect(response.body).toHaveProperty('correct'); expect(response.body).toHaveProperty('incorrects'); - }); + },1000000); // Test /addquestion endpoint it('should add a new question', async () => { diff --git a/question_generator/questionGenerationService.test.js b/question_generator/questionGenerationService.test.js index 2afa26e8..1285d0cf 100644 --- a/question_generator/questionGenerationService.test.js +++ b/question_generator/questionGenerationService.test.js @@ -11,7 +11,6 @@ afterAll(async () => { describe('Question generation service', () => { it('should forward create question request to question generation service', async () => { - jest.setTimeout(100000); const response = await request(app) .get('/api/questions/create'); @@ -19,5 +18,5 @@ describe('Question generation service', () => { expect(response.body).toHaveProperty('question'); expect(response.body).toHaveProperty('correct'); expect(response.body).toHaveProperty('incorrects'); - }); + },100000); });