Skip to content

Commit

Permalink
Another timeout change
Browse files Browse the repository at this point in the history
  • Loading branch information
UO287687 committed Feb 23, 2024
1 parent 4e6cbf1 commit 20e9124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions gatewayservice/gateway-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ 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');

expect(response.statusCode).toBe(200);
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 () => {
Expand Down
3 changes: 1 addition & 2 deletions question_generator/questionGenerationService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ 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');

expect(response.statusCode).toBe(200);
expect(response.body).toHaveProperty('question');
expect(response.body).toHaveProperty('correct');
expect(response.body).toHaveProperty('incorrects');
});
},100000);
});

0 comments on commit 20e9124

Please sign in to comment.