-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
urlgetter.TestKeys: add extra fields to simplify analysis
We often need to check the status code of the last response in the chain and/or to see the body of such response. To simplify these use cases, introduce two new variables that contain such values. These variables are not JSON serialised, because it does not make sense for us to do that. One can always recompute these fields, and the point of this patch is just to avoid duplicating code. Added an extra integration test to make sure that the value of these new variables is okay not only when the context is canceled but also when we're not doing HTTP but something else, e.g., just TLS. Part of #646. We will use this new code to simplify post processing of Telegram results.
- Loading branch information
1 parent
746812d
commit 77b2024
Showing
4 changed files
with
168 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters