Skip to content

tests/util: Replace Response::assert_status() with Response::status() #3061

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

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 2, 2020

Response::status() seems easier to use to me and doesn't hide the actual assertion. It also allows us to access things like StatusCode::is_success() directly.

r? @jtgeibel

@bors
Copy link
Contributor

bors commented Dec 2, 2020

☔ The latest upstream changes (presumably #3062) made this pull request unmergeable. Please resolve the merge conflicts.

Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:

@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@Turbo87 Turbo87 force-pushed the status branch 3 times, most recently from 4baba4c to 62c91a7 Compare December 7, 2020 22:06
@Turbo87 Turbo87 force-pushed the status branch 3 times, most recently from 1ab8772 to 7ef8a01 Compare December 14, 2020 07:59
@bors
Copy link
Contributor

bors commented Dec 22, 2020

☔ The latest upstream changes (presumably #3097) made this pull request unmergeable. Please resolve the merge conflicts.

Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:

@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@Turbo87 Turbo87 force-pushed the status branch 6 times, most recently from 1d09802 to 03c44cd Compare December 28, 2020 20:59
@Turbo87 Turbo87 force-pushed the status branch 3 times, most recently from 8a239a9 to f0bc9d6 Compare January 3, 2021 08:16
@Turbo87 Turbo87 force-pushed the status branch 2 times, most recently from fde194a to bfc4bb5 Compare January 13, 2021 20:40
…s()`

`Response::status()` is easier to use, slightly less verbose in most cases, and does not hide the implementation details as much.
@pietroalbini
Copy link
Member

Where is assert_status defined? Can we remove it?

@pietroalbini
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 15, 2021

📌 Commit 5f8d96f has been approved by pietroalbini

@bors
Copy link
Contributor

bors commented Jan 15, 2021

⌛ Testing commit 5f8d96f with merge 1822885...

@bors
Copy link
Contributor

bors commented Jan 15, 2021

☀️ Test successful - checks-actions
Approved by: pietroalbini
Pushing 1822885 to master...

@bors bors merged commit 1822885 into rust-lang:master Jan 15, 2021
@Turbo87 Turbo87 deleted the status branch January 15, 2021 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants