Test stabilization: Unjoined threads lead to stuck test suite.
This commit is contained in:
parent
14afe747f9
commit
5727c571ff
1 changed files with 2 additions and 1 deletions
|
@ -17,8 +17,9 @@ RSpec.describe Sessions::Backend::ActivityStream do
|
|||
end
|
||||
|
||||
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
|
||||
thread.join
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue