From e59b57a3a7d7d22baf80754e1ec069cc8cd4d561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 13 Jun 2019 09:48:23 +0200 Subject: [PATCH] [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 --- spec/bundler/bundler/fetcher/compact_index_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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