Skip to content

Commit

Permalink
Merge pull request #256 from samvera-labs/faster
Browse files Browse the repository at this point in the history
Only clear solr where needed
  • Loading branch information
Trey Pendragon authored Nov 15, 2017
2 parents c2b5a01 + dd2dfd8 commit 23779b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 0 additions & 9 deletions valkyrie/spec/support/solr_test.rb

This file was deleted.

7 changes: 7 additions & 0 deletions valkyrie/spec/valkyrie/persistence/solr/query_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
require 'valkyrie/specs/shared_specs'

RSpec.describe Valkyrie::Persistence::Solr::QueryService do
SOLR_TEST_URL = "http://127.0.0.1:#{ENV['TEST_JETTY_PORT'] || 8984}/solr/blacklight-core-test"

before do
client = RSolr.connect(url: SOLR_TEST_URL)
client.delete_by_query("*:*")
client.commit
end
let(:adapter) { Valkyrie::Persistence::Solr::MetadataAdapter.new(connection: client) }
let(:client) { RSolr.connect(url: SOLR_TEST_URL) }
it_behaves_like "a Valkyrie query provider"
Expand Down

0 comments on commit 23779b9

Please sign in to comment.