ci: better test for test_syntax (#1278)

The syntax error was fixed in tantivy 0.22.0, so I changed the test case
to something more wrong.
This commit is contained in:
Will Jones
2024-05-07 11:52:39 -07:00
committed by GitHub
parent a6babfa651
commit 12dbca5248

View File

@@ -213,7 +213,7 @@ def test_syntax(table):
# https://github.com/lancedb/lancedb/issues/769
table.create_fts_index("text")
with pytest.raises(ValueError, match="Syntax Error"):
table.search("they could have been dogs OR cats").limit(10).to_list()
table.search("they could have been dogs OR").limit(10).to_list()
# these should work