From 3f60c4b04142abf28b6973ece7a3ca4fa0f85c6a Mon Sep 17 00:00:00 2001 From: P-Jeremy Date: Fri, 20 Sep 2024 16:11:23 +0200 Subject: [PATCH] Fix flacky test on super fast machine --- .../repositories/center-pilot-features-repository_test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/tests/certification/configuration/integration/infrastructure/repositories/center-pilot-features-repository_test.js b/api/tests/certification/configuration/integration/infrastructure/repositories/center-pilot-features-repository_test.js index 7584c9b300d..ede7e12362e 100644 --- a/api/tests/certification/configuration/integration/infrastructure/repositories/center-pilot-features-repository_test.js +++ b/api/tests/certification/configuration/integration/infrastructure/repositories/center-pilot-features-repository_test.js @@ -41,7 +41,10 @@ describe('Certification | Configuration | Integration | Repository | center-pilo describe('update', function () { it('should update the center pilot features', async function () { // given - const centerData = databaseBuilder.factory.buildCertificationCenter({ isV3Pilot: false, updatedAt: new Date() }); + const centerData = databaseBuilder.factory.buildCertificationCenter({ + isV3Pilot: false, + updatedAt: new Date('2020-01-01'), + }); await databaseBuilder.commit(); // when