attempt to stablise spec in travis

This commit is contained in:
Sam 2017-07-25 16:58:19 -04:00
parent ccbcbd0343
commit ad8643bfe2
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ describe Scheduler::Manager do
ActiveRecord::Base.connection_pool.remove(c)
end
expect(ActiveRecord::Base.connection_pool.connections.length).to eq(1)
expect(@thread_count).to eq(Thread.list.count)
wait_for do
@thread_count == Thread.list.count
end
end
it 'can disable stats' do