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

Add a test to make sure request IDs make it into error objects #846

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Sep 4, 2019

Follows up #845 to make sure that this sort of regression is much more
difficult in the future by adding a test that makes sure a request ID is
threaded all the way from an HTTP response back through to an error
object. I verified that the test failed before #845 came in.

r? @ob-stripe

Follows up #845 to make sure that this sort of regression is much more
difficult in the future by adding a test that makes sure a request ID is
threaded all the way from an HTTP response back through to an error
object. I verified that the test failed before #845 came in.
@brandur-stripe brandur-stripe force-pushed the brandur-request-id-test branch from 751e49e to 761dc80 Compare September 4, 2019 21:20
Copy link
Contributor

@ob-stripe ob-stripe left a comment

Choose a reason for hiding this comment

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

lgtm!

@@ -19,8 +19,17 @@ Layout/IndentFirstHashElement:
Layout/IndentHeredoc:
Enabled: false

Metrics/BlockLength:
Max: 40
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that we can make this much more restrictive after excluding the test directory. It moves from 509 to 40.

@brandur-stripe
Copy link
Contributor

Thanks OB!

@brandur-stripe brandur-stripe merged commit 52f64b2 into master Sep 4, 2019
@brandur-stripe brandur-stripe deleted the brandur-request-id-test branch September 4, 2019 21:26
@Senjai
Copy link

Senjai commented Sep 4, 2019

Thanks folks! This is great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants