File tree 2 files changed +5
-2
lines changed
elasticsearch/spec/integration
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 14
14
# KIND, either express or implied. See the License for the
15
15
# specific language governing permissions and limitations
16
16
# under the License.
17
- ELASTICSEARCH_URL = ENV [ 'TEST_ES_SERVER' ] || "http://localhost:#{ ( ENV [ 'PORT' ] || 9200 ) } "
18
- raise URI ::InvalidURIError unless ELASTICSEARCH_URL =~ /\A #{ URI ::DEFAULT_PARSER . make_regexp } \z /
19
17
20
18
require 'spec_helper'
19
+ require 'uri'
20
+
21
+ ELASTICSEARCH_URL = ENV [ 'TEST_ES_SERVER' ] || "http://localhost:#{ ( ENV [ 'PORT' ] || 9200 ) } "
22
+ raise URI ::InvalidURIError unless ELASTICSEARCH_URL =~ /\A #{ URI ::DEFAULT_PARSER . make_regexp } \z /
21
23
22
24
context 'Elasticsearch client' do
23
25
let ( :client ) do
Original file line number Diff line number Diff line change 19
19
20
20
require 'spec_helper'
21
21
require 'logger'
22
+ require 'uri'
22
23
23
24
context 'Elasticsearch client' do
24
25
let ( :logger ) { Logger . new ( $stderr) }
You can’t perform that action at this time.
0 commit comments