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 convenience functions for testing #1401

Merged
merged 6 commits into from
Apr 5, 2020

Conversation

torepettersen
Copy link
Contributor

Adding tests and fixing remarks from #1398

@JohnTitor
Copy link
Member

Looks good! Could you also update changelog?

@torepettersen
Copy link
Contributor Author

Yeah, I can.

@JohnTitor
Copy link
Member

master should fix the build, could you rebase?

Comment on lines +1146 to +1147
#[actix_rt::test]
async fn test_body_json() {

Choose a reason for hiding this comment

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

Since the function is called read_body_json() it is probably a good idea to call this test test_read_body_json().

Copy link
Member

Choose a reason for hiding this comment

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

It's the same as read_response_json and test_response_json, we can follow-up later.

Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, thanks!

@JohnTitor JohnTitor merged commit 0ad02ee into actix:master Apr 5, 2020
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.

3 participants