Skip to content

Commit

Permalink
Update run_all_indexing_jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
redsummernight committed Feb 7, 2025
1 parent 6daa29a commit 7ceb236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions features/step_definitions/search_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
%w[main background stats].each do |reindex_type|
ScheduledReindexJob.perform(reindex_type)
end
perform_enqueued_jobs(only: AsyncIndexerJob)
Indexer.all.map(&:refresh_index)
end

Expand Down
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
c.syntax = [:should, :expect]
end

config.include ActiveJob::TestHelper
config.include ActiveSupport::Testing::TimeHelpers
config.include FactoryBot::Syntax::Methods
config.include EmailSpec::Helpers
Expand Down Expand Up @@ -177,8 +178,9 @@ def clean_the_database

def run_all_indexing_jobs
%w[main background stats].each do |reindex_type|
ScheduledReindexJob.perform reindex_type
ScheduledReindexJob.perform(reindex_type)
end
perform_enqueued_jobs(only: AsyncIndexerJob)
Indexer.all.map(&:refresh_index)
end

Expand Down

0 comments on commit 7ceb236

Please sign in to comment.