diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-12-19 15:31:53 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-20 06:49:49 +0900 |
commit | 72db2e00d4edb7a0e316a5979316595a67069d97 (patch) | |
tree | 065445bd863a05ba1e4594523508e712735f0bb3 /spec | |
parent | a0f10a973fb94a0ee73da7cab792128cdf601783 (diff) |
[rubygems/rubygems] Error tracing should be printed to stderr
https://github.com/rubygems/rubygems/commit/23178f7d7b
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/install/gems/compact_index_spec.rb | 3 | ||||
-rw-r--r-- | spec/bundler/realworld/mirror_probe_spec.rb | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/bundler/install/gems/compact_index_spec.rb b/spec/bundler/install/gems/compact_index_spec.rb index 0cee69f702..66f755c18f 100644 --- a/spec/bundler/install/gems/compact_index_spec.rb +++ b/spec/bundler/install/gems/compact_index_spec.rb @@ -922,7 +922,8 @@ The checksum of /versions does not match the checksum provided by the server! So Gem::Dependency.new("activerecord", "= 2.3.2"), Gem::Dependency.new("actionmailer", "= 2.3.2"), Gem::Dependency.new("activeresource", "= 2.3.2")] - expect(out).to include(<<-E.strip).and include("rails-2.3.2 from rubygems remote at #{source_uri}/ has either corrupted API or lockfile dependencies") + expect(out).to include("rails-2.3.2 from rubygems remote at #{source_uri}/ has either corrupted API or lockfile dependencies") + expect(err).to include(<<-E.strip) Bundler::APIResponseMismatchError: Downloading rails-2.3.2 revealed dependencies not in the API or the lockfile (#{deps.map(&:to_s).join(", ")}). Either installing with `--full-index` or running `bundle update rails` should fix the problem. E 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 |