Skip to content

Commit

Permalink
Disable search jobs in BeforeAll hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova committed May 23, 2024
1 parent d8f3540 commit 8988cad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions features/support/sphinx.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
require 'thinking_sphinx'
require 'thinking_sphinx/test'

Before('@search') do
BeforeAll do
::ThinkingSphinx::Test.disable_search_jobs!
end

Before '@search' do
Sidekiq::Job.clear_all
::ThinkingSphinx::Test.stop
::ThinkingSphinx::Test.clear
Expand All @@ -16,5 +20,3 @@
::ThinkingSphinx::Test.disable_search_jobs!
::ThinkingSphinx::Test.stop
end

::ThinkingSphinx::Test.disable_search_jobs!

0 comments on commit 8988cad

Please sign in to comment.