Skip to content

Add convenience functions for testing#1401

Merged
JohnTitor merged 6 commits into
actix:masterfrom
thecloudmaker:test-extentions
Apr 5, 2020
Merged

Add convenience functions for testing#1401
JohnTitor merged 6 commits into
actix:masterfrom
thecloudmaker:test-extentions

Conversation

@torepettersen

Copy link
Copy Markdown
Contributor

Adding tests and fixing remarks from #1398

@JohnTitor

Copy link
Copy Markdown
Member

Looks good! Could you also update changelog?

@torepettersen

Copy link
Copy Markdown
Contributor Author

Yeah, I can.

@JohnTitor

Copy link
Copy Markdown
Member

master should fix the build, could you rebase?

Comment thread src/test.rs
Comment on lines +1146 to +1147
#[actix_rt::test]
async fn test_body_json() {

Copy link
Copy Markdown

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
Copy Markdown
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.

@JohnTitor JohnTitor left a comment

Copy link
Copy Markdown
Member

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