diff --git a/gatewayservice/gateway-service.test.js b/gatewayservice/gateway-service.test.js index affaadc2..2bb40bd0 100644 --- a/gatewayservice/gateway-service.test.js +++ b/gatewayservice/gateway-service.test.js @@ -40,7 +40,7 @@ describe('Gateway Service', () => { // Test /api/questions/create endpoint it('should forward create question request to question generation service', async () => { - this.timeout(100000); + jest.setTimeout(100000); const response = await request(app) .get('/api/questions/create'); diff --git a/question_generator/questionGenerationService.test.js b/question_generator/questionGenerationService.test.js index a513e320..2afa26e8 100644 --- a/question_generator/questionGenerationService.test.js +++ b/question_generator/questionGenerationService.test.js @@ -11,7 +11,7 @@ afterAll(async () => { describe('Question generation service', () => { it('should forward create question request to question generation service', async () => { - this.timeout(100000); + jest.setTimeout(100000); const response = await request(app) .get('/api/questions/create');