Commit a4848e1cf55e5603e187e6d7313d681582bcf741
1 parent
a796c9ea
Exists in
master
Fixed test for reindex(mode: :async, wait: true)
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
test/reindex_test.rb
@@ -189,12 +189,12 @@ class ReindexTest < Minitest::Test | @@ -189,12 +189,12 @@ class ReindexTest < Minitest::Test | ||
189 | end | 189 | end |
190 | 190 | ||
191 | def test_full_async_wait | 191 | def test_full_async_wait |
192 | - skip "Need to fix for test adapter" | ||
193 | - | ||
194 | store_names ["Product A"], reindex: false | 192 | store_names ["Product A"], reindex: false |
195 | 193 | ||
196 | - capture_io do | ||
197 | - Product.reindex(mode: :async, wait: true) | 194 | + perform_enqueued_jobs do |
195 | + capture_io do | ||
196 | + Product.reindex(mode: :async, wait: true) | ||
197 | + end | ||
198 | end | 198 | end |
199 | 199 | ||
200 | assert_search "product", ["Product A"] | 200 | assert_search "product", ["Product A"] |