Skip to content
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

Fix broken error handling specs #38

Closed
wants to merge 1 commit into from

Conversation

harrisred
Copy link
Contributor

The reason the specs are failing is because of the following change
in the webmock gem:
bblimke/webmock@1c48030#diff-4fd2506a42939f27882b390651103483

RequestStub:to_timeout method now raises a Net::OpenTimeout exception
instead of a Timeout::Error. The Net::OpenTimeout error when using Faraday
is wrapped in a Faraday::ConnectionFailed error, that is not rescued and re-raised
as a Skroutz::Timeout error: https://github.com/skroutz/skroutz.rb/blob/master/lib/skroutz/errors.rb#L92

The reason the specs are failing is because of the following change
in the webmock gem:
bblimke/webmock@1c48030#diff-4fd2506a42939f27882b390651103483

RequestStub:to_timeout method now raises a Net::OpenTimeout exception
instead of a Timeout::Error. The Net::OpenTimeout error when using Faraday
is wrapped in a Faraday::ConnectionFailed error, that is not rescued and re-raised
as a Skroutz::Timeout error:
https://github.com/skroutz/skroutz.rb/blob/master/lib/skroutz/errors.rb#L92
Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

.rubocop.yml: Style/DotPosition has the wrong namespace - should be Layout
.rubocop.yml: Style/DotPosition has the wrong namespace - should be Layout
.rubocop.yml: Style/SpaceInsideBlockBraces has the wrong namespace - should be Layout
Error: obsolete parameter EnforcedStyle (for Style/Encoding) found in .rubocop.yml
Style/Encoding no longer supports styles. The "never" behavior is always assumed.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.075% when pulling 23ddc6f on fix_broken_error_handling_specs into 7345c3c on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.075% when pulling 23ddc6f on fix_broken_error_handling_specs into 7345c3c on master.

@harrisred harrisred closed this in d36cb01 Oct 4, 2019
@alistat alistat deleted the fix_broken_error_handling_specs branch October 7, 2019 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants