correct flaky spec

This commit is contained in:
Sam 2017-10-04 10:47:02 +11:00
parent 04de37555f
commit 4ee2fcd3d5

View File

@ -77,7 +77,7 @@ describe Scheduler::Manager do
ActiveRecord::Base.connection_pool.connections.reject { |c| c.in_use? }.each do |c|
ActiveRecord::Base.connection_pool.remove(c)
end
expect(ActiveRecord::Base.connection_pool.connections.length).to eq(1)
expect(ActiveRecord::Base.connection_pool.connections.length).to (be <= 1)
on_thread_mismatch = lambda do
current = Thread.list.map { |t| t.object_id }