Skip to content

Commit cf8a17f

Browse files
committed
Fix will_paginate test race condition
1 parent 1d70659 commit cf8a17f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/pagination/will_paginate_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'will_paginate'
2+
require 'support/async_helper'
23
require 'support/models/movie'
34

45
describe 'Pagination with will_paginate' do
@@ -7,6 +8,8 @@
78
Movie.clear_index!
89

910
6.times { Movie.create(title: Faker::Movie.title) }
11+
12+
AsyncHelper.await_last_task
1013
end
1114

1215
it 'paginates with sort' do

0 commit comments

Comments
 (0)