Skip to content

Commit e20e957

Browse files
bors[bot]bidoubiwa
andauthored
Merge #1100
1100: Skip randomly failing test r=bidoubiwa a=bidoubiwa fixes: #654 Co-authored-by: Charlotte Vermandel <[email protected]>
2 parents 31a82cb + 8786dbd commit e20e957

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

tests/settings_tests.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ describe.each([
188188
expect(response).toHaveProperty('synonyms', {})
189189
})
190190

191-
test(`${permission} key: Update settings that verifies no overwrite in the settings`, async () => {
191+
test(`${permission} key: Update searchableAttributes settings on empty index`, async () => {
192192
const newSettings = {
193193
searchableAttributes: ['title'],
194194
}
@@ -213,17 +213,28 @@ describe.each([
213213
expect(response).toHaveProperty('synonyms', {})
214214
})
215215

216-
test(`${permission} key: Update settings that verifies no overwrite in the settings on empty index with primary key`, async () => {
216+
// FIXME: Removed until this issue is fixed: https://github.com/meilisearch/MeiliSearch/issues/1927
217+
test.skip(`${permission} key: Update searchableAttributes settings on empty index with a primary key`, async () => {
217218
const newSettings = {
218219
searchableAttributes: ['title'],
219220
}
221+
// Update settings
220222
const settings: EnqueuedUpdate = await client
221223
.index(indexAndPK.uid)
222224
.updateSettings(newSettings)
223-
expect(settings).toHaveProperty('updateId', expect.any(Number))
225+
// Wait for setting addition to be done
224226
await client.index(index.uid).waitForPendingUpdate(settings.updateId)
225227

228+
// Fetch settings
226229
const response: Settings = await client.index(indexAndPK.uid).getSettings()
230+
231+
// compare searchableAttributes
232+
expect(response).toHaveProperty(
233+
'searchableAttributes',
234+
newSettings.searchableAttributes
235+
)
236+
237+
expect(settings).toHaveProperty('updateId', expect.any(Number))
227238
expect(response).toHaveProperty('rankingRules', defaultRankingRules)
228239
expect(response).toHaveProperty(
229240
'distinctAttribute',

0 commit comments

Comments
 (0)