Skip to content

Commit 49a385b

Browse files
bors[bot]alallema
andauthored
Merge #166
166: Fixing tests search with facet r=curquiza a=alallema **Description** Fixing tests in: - Index - Search with facetFilters - Index - Search with facetsDistribution Co-authored-by: alallema <[email protected]>
2 parents 447a017 + a2a8530 commit 49a385b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spec/meilisearch/index/search/facet_filters_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
clear_all_indexes(client)
1717
@index = client.create_index('books')
1818
response = @index.add_documents(@documents)
19-
@index.update_attributes_for_faceting(['genre', 'year'])
19+
@index.wait_for_pending_update(response['updateId'])
20+
response = @index.update_attributes_for_faceting(['genre', 'year'])
2021
@index.wait_for_pending_update(response['updateId'])
2122
end
2223

spec/meilisearch/index/search/facets_distribution_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
clear_all_indexes(client)
7171
@index = client.create_index('books')
7272
response = @index.add_documents(@documents)
73-
@index.update_attributes_for_faceting(['genre', 'year', 'author'])
73+
@index.wait_for_pending_update(response['updateId'])
74+
response = @index.update_attributes_for_faceting(['genre', 'year', 'author'])
7475
@index.wait_for_pending_update(response['updateId'])
7576
end
7677

0 commit comments

Comments
 (0)