From 37f05ab6fa5734dc03c36f4cfc401cf653388ac7 Mon Sep 17 00:00:00 2001
From: Etienne LOUPIAS <eloupias@grandlyon.com>
Date: Thu, 10 Mar 2022 14:13:20 +0100
Subject: [PATCH] fix(tests): avoid error for structure search test

---
 src/structures/services/structures-search.service.spec.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/structures/services/structures-search.service.spec.ts b/src/structures/services/structures-search.service.spec.ts
index ed226632d..67fd4e9ae 100644
--- a/src/structures/services/structures-search.service.spec.ts
+++ b/src/structures/services/structures-search.service.spec.ts
@@ -49,7 +49,7 @@ describe('StructuresSearchService', () => {
     // wait for the new structures to be indexed before search
     await service.refreshIndexStructure();
     // but we still need to wait the refresh to be done
-    await new Promise((r) => setTimeout(r, 1000));
+    await new Promise((r) => setTimeout(r, 2000));
   });
 
   it('should find maisons de la métropole', async () => {
-- 
GitLab