1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Fix thread leak in compact index specs

This spec was not stopping threads after itself. That would cause the
previous spec in the file (that checks that no threads are left behind)
to fail.

https://github.com/bundler/bundler/commit/81ad85b92d
This commit is contained in:
David Rodríguez 2019-06-13 09:48:23 +02:00 committed by Hiroshi SHIBATA
parent a12557dbfd
commit e59b57a3a7
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -22,7 +22,7 @@ RSpec.describe Bundler::Fetcher::CompactIndex do
end
it "calls worker#stop during the run" do
expect_any_instance_of(Bundler::Worker).to receive(:stop).at_least(:once)
expect_any_instance_of(Bundler::Worker).to receive(:stop).at_least(:once).and_call_original
compact_index.specs_for_names(["lskdjf"])
end