From ca26a467ec6410d32cae7c2ef12eaab6889c40e1 Mon Sep 17 00:00:00 2001 From: Philip Harrison Date: Mon, 15 Feb 2021 13:26:54 +0000 Subject: [PATCH] Fix go_modules flaky spec accessing archive.org Spotted this spec has been flaking: https://github.com/dependabot/dependabot-core/pull/3138/checks?check_run_id=1903505156 Looks like archive.org is intermittently failing to serve the request. --- go_modules/spec/dependabot/go_modules/update_checker_spec.rb | 4 ++-- go_modules/spec/fixtures/projects/missing_meta_tag/go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go_modules/spec/dependabot/go_modules/update_checker_spec.rb b/go_modules/spec/dependabot/go_modules/update_checker_spec.rb index a0f3e2e8b0..6c00cdcd87 100644 --- a/go_modules/spec/dependabot/go_modules/update_checker_spec.rb +++ b/go_modules/spec/dependabot/go_modules/update_checker_spec.rb @@ -162,7 +162,7 @@ module foobar let(:project_name) { "missing_meta_tag" } let(:repo_contents_path) { build_tmp_repo(project_name) } - let(:dependency_name) { "web.archive.org/web/dependabot.com" } + let(:dependency_name) { "example.com/web/dependabot.com" } let(:dependency_version) { "1.7.0" } let(:go_mod) do @@ -174,7 +174,7 @@ module foobar error_class = Dependabot::DependencyFileNotResolvable expect { latest_resolvable_version }. to raise_error(error_class) do |error| - expect(error.message).to include("web.archive.org/web/dependabot.com") + expect(error.message).to include("example.com/web/dependabot.com") end end end diff --git a/go_modules/spec/fixtures/projects/missing_meta_tag/go.mod b/go_modules/spec/fixtures/projects/missing_meta_tag/go.mod index 259a3a764f..dc73e74c31 100644 --- a/go_modules/spec/fixtures/projects/missing_meta_tag/go.mod +++ b/go_modules/spec/fixtures/projects/missing_meta_tag/go.mod @@ -3,5 +3,5 @@ module github.com/dependabot/test go 1.12 require ( - web.archive.org/web/dependabot.com v1.7.0 + example.com/web/dependabot.com v1.7.0 )