Skip to content

Commit a563a50

Browse files
committed
fix: "projectUpdatedKafkaHandler" unit test
Project has been indexed in a wrong way for unit test. Also, we have to wait until the index is refreshed to make tests consistent.
1 parent 5210d46 commit a563a50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/events/projects/index.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ describe('projectUpdatedKafkaHandler', () => {
111111
index: ES_PROJECT_INDEX,
112112
type: ES_PROJECT_TYPE,
113113
id: project.id,
114-
body: {
115-
doc: project.get({ plain: true }),
116-
},
114+
body: project.get({ plain: true }),
115+
refresh: 'wait_for',
117116
});
118117
});
119118

0 commit comments

Comments
 (0)