Test stabilization: Unjoined threads lead to stuck test suite.

This commit is contained in:
Thorsten Eckel 2018-07-24 21:55:02 +02:00
parent 14afe747f9
commit 5727c571ff

View file

@ -17,8 +17,9 @@ RSpec.describe Sessions::Backend::ActivityStream do
end end
it 'manages race condition' do it 'manages race condition' do
Thread.new { associated_tickets.each(&:destroy) } thread = Thread.new { associated_tickets.each(&:destroy) }
expect { subject.load }.not_to raise_error expect { subject.load }.not_to raise_error
thread.join
end end
end end
end end