-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go_modules: don't raise error for go mod tidy #2830
Changes from 5 commits
8460ce5
e839c12
a496373
c3995ee
61b4ec5
aa67f7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -225,13 +225,19 @@ | |||
# OpenAPIV2 has been renamed to openapiv2 in this version | ||||
let(:dependency_version) { "v0.5.1" } | ||||
|
||||
it "raises a DependencyFileNotResolvable error" do | ||||
it "does not raises a DependencyFileNotResolvable error" do | ||||
error_class = Dependabot::DependencyFileNotResolvable | ||||
expect { updater.updated_go_sum_content }. | ||||
to raise_error(error_class) do |error| | ||||
to_not raise_error(error_class) do |error| | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👋 @fatih: Can you help me understand why this behavior is changing in this pull request? Since we're only changing code related to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This particular change was caused previously by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this case is only caught by
Exported as I think we can delete this test case and rely on the below There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, @feelepxyz is right 👍👍 |
||||
expect(error.message).to include("googleapis/gnostic/OpenAPIv2") | ||||
end | ||||
fatih marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
end | ||||
|
||||
it "updates the go.mod" do | ||||
expect(updater.updated_go_mod_content).to include( | ||||
%(github.com/googleapis/gnostic v0.5.1 // indirect\n) | ||||
) | ||||
end | ||||
end | ||||
end | ||||
|
||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯