Skip to content

Commit 6590130

Browse files
authored
updates test to catch the exception when query.timeout() is called
1 parent 7a020bd commit 6590130

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_search.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,6 +2266,5 @@ def test_query_timeout(r: redis.Redis):
22662266
assert q1.get_args() == ["foo", "TIMEOUT", 5000, "LIMIT", 0, 10]
22672267
q1 = Query("foo").timeout(0)
22682268
assert q1.get_args() == ["foo", "TIMEOUT", 0, "LIMIT", 0, 10]
2269-
q2 = Query("foo").timeout("not_a_number")
22702269
with pytest.raises(AttributeError):
2271-
r.ft().search(q2)
2270+
Query("foo").timeout("not_a_number")

0 commit comments

Comments
 (0)