summaryrefslogtreecommitdiff
path: root/spec/bundler/realworld
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-12-19 15:31:53 +0100
committergit <svn-admin@ruby-lang.org>2021-12-20 06:49:49 +0900
commit72db2e00d4edb7a0e316a5979316595a67069d97 (patch)
tree065445bd863a05ba1e4594523508e712735f0bb3 /spec/bundler/realworld
parenta0f10a973fb94a0ee73da7cab792128cdf601783 (diff)
[rubygems/rubygems] Error tracing should be printed to stderr
https://github.com/rubygems/rubygems/commit/23178f7d7b
Diffstat (limited to 'spec/bundler/realworld')
-rw-r--r--spec/bundler/realworld/mirror_probe_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/bundler/realworld/mirror_probe_spec.rb b/spec/bundler/realworld/mirror_probe_spec.rb
index 84d6a9c782..b5aaf676e9 100644
--- a/spec/bundler/realworld/mirror_probe_spec.rb
+++ b/spec/bundler/realworld/mirror_probe_spec.rb
@@ -89,7 +89,10 @@ RSpec.describe "fetching dependencies with a not available mirror", :realworld =
bundle :install, :artifice => nil, :raise_on_error => false
expect(out).to include "Fetching source index from #{mirror}/"
- expect(err.split("\n").count).to eq(4)
+ expect(err).to include "Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from #{mirror}/ due to underlying error <Errno::ECONNREFUSED: Failed to open TCP connection to #{host}:#{@mirror_port} (Connection refused - connect(2)"
+ expect(err).to include "Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from #{mirror}/ due to underlying error <Errno::ECONNREFUSED: Failed to open TCP connection to #{host}:#{@mirror_port} (Connection refused - connect(2)"
+ expect(err).to include "Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from #{mirror}/ due to underlying error <Errno::ECONNREFUSED: Failed to open TCP connection to #{host}:#{@mirror_port} (Connection refused - connect(2)"
+ expect(err).to include "Could not fetch specs from #{mirror}/ due to underlying error <Errno::ECONNREFUSED: Failed to open TCP connection to #{host}:#{@mirror_port} (Connection refused - connect(2)"
end
end