Skip to content

Commit 444beac

Browse files
committed
Fix patched Elasticsearch use of timeout
1 parent b9808b2 commit 444beac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/mocks/elasticsearch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def patched_es_init(self, *args, **kwargs):
3131
assert kwargs["cloud_id"] == "foo"
3232
if "api_key" in kwargs:
3333
assert kwargs["api_key"] == "bar"
34-
return orig_es_init(self, "http://localhost:9200", timeout=60)
34+
return orig_es_init(self, "http://localhost:9200", request_timeout=60)
3535

3636
# patch Elasticsearch.__init__
3737
elasticsearch.Elasticsearch.__init__ = patched_es_init

0 commit comments

Comments
 (0)