Skip to content

Commit f3f23e5

Browse files
committed
[API] Test Runner: Always clear datastreams
1 parent 00ecdac commit f3f23e5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.ci/run-repository.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ elif [[ $TEST_SUITE != "platinum" ]]; then
7272
--network="${network_name}" \
7373
--env "TEST_ES_SERVER=${elasticsearch_url}" \
7474
--env "TEST_SUITE=${TEST_SUITE}" \
75+
--env "STACK_VERSION=${STACK_VERSION}" \
7576
--volume $repo:/usr/src/app \
7677
--volume=/tmp:/tmp \
7778
--name elasticsearch-ruby \
@@ -86,6 +87,7 @@ else
8687
--env "TEST_SUITE=${TEST_SUITE}" \
8788
--env "ELASTIC_USER=elastic" \
8889
--env "SINGLE_TEST=${SINGLE_TEST}" \
90+
--env "STACK_VERSION=${STACK_VERSION}" \
8991
--env "ELASTIC_CLIENT_APIVERSIONING=${ELASTIC_API_VERSIONING:-false}" \
9092
--volume $repo:/usr/src/app \
9193
--name elasticsearch-ruby \

elasticsearch-api/spec/rest_yaml_tests_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
require "#{File.expand_path(File.dirname('..'), '..')}/api-spec-testing/test_file"
1919
require "#{File.expand_path(File.dirname('..'), '..')}/api-spec-testing/rspec_matchers"
2020
include Elasticsearch::RestAPIYAMLTests
21-
require 'elasticsearch/xpack'
2221

2322
TRANSPORT_OPTIONS = {}
2423
PROJECT_PATH = File.join(File.dirname(__FILE__), '..')
2524
STACK_VERSION = ENV['STACK_VERSION']
25+
require 'elasticsearch/xpack'
2626

2727
if (hosts = ELASTICSEARCH_URL)
2828
split_hosts = hosts.split(',').map do |host|

0 commit comments

Comments
 (0)