summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-13 09:48:23 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-14 16:33:23 +0200
commita9ab27eb93b029e8b675669d9e26ed1e1c902cbb (patch)
treebc7d783c87c1c317a00fa55094f767a4560c658d
parent81f8d9f5f1ba4036b9c0744025c8a47c2e8471f5 (diff)
downloadbundler-a9ab27eb93b029e8b675669d9e26ed1e1c902cbb.tar.gz
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.
-rw-r--r--spec/bundler/fetcher/compact_index_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/fetcher/compact_index_spec.rb b/spec/bundler/fetcher/compact_index_spec.rb
index 2f622f6653..f5ae6f4d77 100644
--- a/spec/bundler/fetcher/compact_index_spec.rb
+++ b/spec/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