spec/acceptance/support/sphinx_helpers.rb in thinking-sphinx-3.0.6 vs spec/acceptance/support/sphinx_helpers.rb in thinking-sphinx-3.1.0
- old
+ new
@@ -2,13 +2,16 @@
def sphinx
@sphinx ||= SphinxController.new
end
def index(*indices)
+ sleep 0.5 if ENV['TRAVIS']
+
yield if block_given?
sphinx.index *indices
sleep 0.25
+ sleep 0.5 if ENV['TRAVIS']
end
end
RSpec.configure do |config|
config.include SphinxHelpers