Introducing DummyConnectionPool for when only 1 connection defined

This commit is contained in:
Honza Král
2014-12-20 00:35:24 +01:00
parent 82a32540d7
commit 836c6d1933
6 changed files with 49 additions and 14 deletions
+3 -3
View File
@@ -8,9 +8,6 @@ import subprocess
import nose
from test_elasticsearch.test_server import get_client
from test_elasticsearch.test_cases import SkipTest
def fetch_es_repo():
# user is manually setting YAML dir, don't tamper with it
if 'TEST_ES_YAML_DIR' in environ:
@@ -35,6 +32,9 @@ def fetch_es_repo():
if environ.get('TEST_ES_NOFETCH', False):
return
from test_elasticsearch.test_server import get_client
from test_elasticsearch.test_cases import SkipTest
# find out the sha of the running es
try:
es = get_client()