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-17 12:44:56 +0200
commit81ad85b92de5b4f52045856d9de04d7b85c43570 (patch)
treedc2f3bf862ff65c5154023f5738e4e18e71f9263
parent0d4179037d5e0fc72a617f1043df672cf73e2eaa (diff)
downloadbundler-81ad85b92de5b4f52045856d9de04d7b85c43570.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