Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Commit

Permalink
[TEST] Added sleep to prevent failures for percolation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Mar 18, 2013
1 parent 51b8e90 commit 7530ad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/active_record_searchable_test.rb
Expand Up @@ -600,6 +600,7 @@ module ::Rails; end
setup do
ActiveRecordModelWithPercolation.index.register_percolator_query('alert') { string 'warning' }
Tire.index('_percolator').refresh
sleep 0.2
end

should "return matching queries when percolating" do
Expand Down
1 change: 1 addition & 0 deletions test/integration/persistent_model_test.rb
Expand Up @@ -186,6 +186,7 @@ def teardown
setup do
PersistentArticleWithPercolation.index.register_percolator_query('alert') { string 'warning' }
Tire.index('_percolator').refresh
sleep 0.2
end

should "return matching queries when percolating" do
Expand Down

0 comments on commit 7530ad5

Please sign in to comment.