From e6ab8abc6b9f63f9a14ca92ce0041225455f595c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 24 Nov 2022 16:58:55 +0100 Subject: [PATCH] bump test timeouts in events-backend due to flakiness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .../http/HttpPostIngressEventPublisher.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/events-backend/src/service/http/HttpPostIngressEventPublisher.test.ts b/plugins/events-backend/src/service/http/HttpPostIngressEventPublisher.test.ts index 28f3ddcac4..72e0b94c57 100644 --- a/plugins/events-backend/src/service/http/HttpPostIngressEventPublisher.test.ts +++ b/plugins/events-backend/src/service/http/HttpPostIngressEventPublisher.test.ts @@ -51,21 +51,21 @@ describe('HttpPostIngressEventPublisher', () => { const notFoundResponse = await request(app) .post('/http/unknown') - .timeout(100) + .timeout(1000) .send({ test: 'data' }); expect(notFoundResponse.status).toBe(404); const response1 = await request(app) .post('/http/testA') .set('X-Custom-Header', 'test-value') - .timeout(100) + .timeout(1000) .send({ testA: 'data' }); expect(response1.status).toBe(202); const response2 = await request(app) .post('/http/testB') .set('X-Custom-Header', 'test-value') - .timeout(100) + .timeout(1000) .send({ testB: 'data' }); expect(response2.status).toBe(202); @@ -151,13 +151,13 @@ describe('HttpPostIngressEventPublisher', () => { const response1 = await request(app) .post('/http/testA') - .timeout(100) + .timeout(1000) .send({ test: 'data' }); expect(response1.status).toBe(202); const response2 = await request(app) .post('/http/testB') - .timeout(100) + .timeout(1000) .send({ test: 'data' }); expect(response2.status).toBe(400); expect(response2.body).toEqual({ message: 'wrong signature' }); @@ -165,7 +165,7 @@ describe('HttpPostIngressEventPublisher', () => { const response3 = await request(app) .post('/http/testB') .set('X-Test-Signature', 'wrong') - .timeout(100) + .timeout(1000) .send({ test: 'data' }); expect(response3.status).toBe(400); expect(response3.body).toEqual({ message: 'wrong signature' }); @@ -173,20 +173,20 @@ describe('HttpPostIngressEventPublisher', () => { const response4 = await request(app) .post('/http/testB') .set('X-Test-Signature', 'testB-signature') - .timeout(100) + .timeout(1000) .send({ test: 'data' }); expect(response4.status).toBe(202); const response5 = await request(app) .post('/http/testC') - .timeout(100) + .timeout(1000) .send({ test: 'data' }); expect(response5.status).toBe(404); expect(response5.body).toEqual({}); const response6 = await request(app) .post('/http/testD') - .timeout(100) + .timeout(1000) .send({ test: 'data' }); expect(response6.status).toBe(403); expect(response6.body).toEqual({});