Skip to content

Commit da40ec6

Browse files
committed
fix: unit tests stability
1 parent 275d8da commit da40ec6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/routes/projects/list.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,20 +282,23 @@ describe('LIST Project', () => {
282282
type: ES_PROJECT_TYPE,
283283
id: project1.id,
284284
body: data[0],
285+
refresh: 'wait_for',
285286
});
286287

287288
const esp2 = server.services.es.index({
288289
index: ES_PROJECT_INDEX,
289290
type: ES_PROJECT_TYPE,
290291
id: project2.id,
291292
body: data[1],
293+
refresh: 'wait_for',
292294
});
293295

294296
const esp3 = server.services.es.index({
295297
index: ES_PROJECT_INDEX,
296298
type: ES_PROJECT_TYPE,
297299
id: project3.id,
298300
body: data[2],
301+
refresh: 'wait_for',
299302
});
300303
return Promise.all([esp1, esp2, esp3]);
301304
}).then(() => {

0 commit comments

Comments
 (0)