Skip to content

Commit

Permalink
Stop trying getting local client
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Oct 30, 2023
1 parent e1d81b5 commit ca26440
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions test_elasticsearch/test_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,11 @@ def get_client(**kwargs):
if client is not None and not kwargs:
return client

# try and locate manual override in the local environment
try:
from test_elasticsearch.local import get_client as local_get_client

new_client = local_get_client(**kwargs)
except ImportError:
# fallback to using vanilla client
try:
new_client = test.get_test_client(**kwargs)
except SkipTest:
client = False
raise
new_client = test.get_test_client(**kwargs)
except SkipTest:
client = False
raise

if not kwargs:
client = new_client
Expand Down

0 comments on commit ca26440

Please sign in to comment.