diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-10-01 01:19:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 01:19:11 +0200 |
commit | 5c42f47617d311219d06e082e4daa41e671903c8 (patch) | |
tree | c2be1daba626b6bbfd833cf9a55c5dc243e786d6 /spec | |
parent | 12c4ec0c83fc5d43a29b3333ab07510c87844166 (diff) |
Fix records not being indexed sometimes (#12024)
It's possible that after commit callbacks were not firing when exceptions occurred in the process. Also, the default Sidekiq strategy does not push indexing jobs immediately, which is not necessary and could be part of the issue too.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/rails_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 3a5e7491e..6fbceca53 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -12,7 +12,7 @@ require 'capybara/rspec' Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } ActiveRecord::Migration.maintain_test_schema! -WebMock.disable_net_connect! +WebMock.disable_net_connect!(allow: Chewy.settings[:host]) Redis.current = Redis::Namespace.new("mastodon_test#{ENV['TEST_ENV_NUMBER']}", redis: Redis.current) Sidekiq::Testing.inline! Sidekiq::Logging.logger = nil |