Skip to content

Commit

Permalink
Merge pull request #3140 from dependabot/feelepxyz/fix-go-mod-flake
Browse files Browse the repository at this point in the history
Fix go_modules flaky spec accessing archive.org
  • Loading branch information
feelepxyz authored Feb 15, 2021
2 parents 48ce4e5 + ca26a46 commit 4ee1491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions go_modules/spec/dependabot/go_modules/update_checker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go_modules/spec/fixtures/projects/missing_meta_tag/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 4ee1491

Please sign in to comment.