summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-13 09:48:23 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:56 +0900
commite59b57a3a7d7d22baf80754e1ec069cc8cd4d561 (patch)
treef8b08d5cf7eb6d27f918bdffbc082c86333d6705 /spec
parenta12557dbfdb63282b844f35ad0c8804bf182dfbf (diff)
[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
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/bundler/fetcher/compact_index_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/bundler/fetcher/compact_index_spec.rb b/spec/bundler/bundler/fetcher/compact_index_spec.rb
index 2f622f6653..f5ae6f4d77 100644
--- a/spec/bundler/bundler/fetcher/compact_index_spec.rb
+++ b/spec/bundler/bundler/fetcher/compact_index_spec.rb
@@ -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