From c2a1182c33ff3ff6eb5a3e53eb07cab7b9a2e9b2 Mon Sep 17 00:00:00 2001 From: ellnix <103502144+ellnix@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:19:08 +0200 Subject: [PATCH] Remove redundant calls to sleep in tests --- spec/integration_spec.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spec/integration_spec.rb b/spec/integration_spec.rb index 01df52af..df70881b 100644 --- a/spec/integration_spec.rb +++ b/spec/integration_spec.rb @@ -365,7 +365,6 @@ @products_in_database = Product.all Product.reindex!(MeiliSearch::Rails::IndexSettings::DEFAULT_BATCH_SIZE, true) - sleep 5 end it 'is not synchronous' do @@ -682,7 +681,6 @@ end Restaurant.reindex!(MeiliSearch::Rails::IndexSettings::DEFAULT_BATCH_SIZE, true) - sleep 5 end it 'paginates' do @@ -738,7 +736,6 @@ 10.times { Movie.create(title: Faker::Movie.title) } Movie.reindex!(MeiliSearch::Rails::IndexSettings::DEFAULT_BATCH_SIZE, true) - sleep 5 end it 'paginates' do @@ -807,7 +804,6 @@ end Restaurant.reindex!(MeiliSearch::Rails::IndexSettings::DEFAULT_BATCH_SIZE, true) - sleep 5 end it 'includes _formatted object' do