Skip to content

Commit

Permalink
OEX-39: edit test settings for avoiding huge log during each test
Browse files Browse the repository at this point in the history
  • Loading branch information
Golub-Sergey committed Oct 12, 2020
1 parent 0761a42 commit af1dbf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/support/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

config.before(:each) do
# Create the index before each test if it doesn't exist.
TaskHelpers::ElasticsearchHelper.initialize_indices
TaskHelpers::ElasticsearchHelper.initialize_indices(true)
end

config.after(:suite) do
TaskHelpers::ElasticsearchHelper.delete_indices
config.after(:each) do
Elasticsearch::Model.client.indices.delete(index: "_all", ignore_unavailable: true)
end

end

0 comments on commit af1dbf1

Please sign in to comment.