spec/elasticsearch/transport/base_spec.rb in elasticsearch-transport-7.17.9 vs spec/elasticsearch/transport/base_spec.rb in elasticsearch-transport-7.17.10

- old
+ new

@@ -143,11 +143,12 @@ end let(:arguments) do { hosts: ['http://unavailable:9200', 'http://unavailable:9201'], - retry_on_failure: 2 + retry_on_failure: 2, + adapter: :net_http } end context 'when `perform_request` is called without a `retry_on_failure` option value' do before do @@ -167,10 +168,11 @@ end let(:arguments) do { hosts: ELASTICSEARCH_HOSTS, - retry_on_status: ['404'] + retry_on_status: ['404'], + adapter: :net_http } end it 'retries on 404 status the specified number of max_retries' do expect do