Description
Describe the feature:
Elasticsearch version (bin/elasticsearch --version
): 7.14.1
elasticsearch-py
version (elasticsearch.__versionstr__
): 7.14.1
Description of the problem including expected versus actual behavior: When running tests sequentially using pytest
everything works fine, however, once I try to run tests in parallel using pytest -n=4
I get the following error:
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f201879e978>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f201879e978>: Failed to establish a new connection: [Errno 111] Connection refused)
I make sure before every test that the elasticsearch server is running, after this error I check the server status to see that is failed.