mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
correct flaky spec
This commit is contained in:
parent
04de37555f
commit
4ee2fcd3d5
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user