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

Enable tests on CI #357

Merged
merged 2 commits into from
Oct 16, 2019
Merged

Enable tests on CI #357

merged 2 commits into from
Oct 16, 2019

Conversation

taiki-e
Copy link
Contributor

@taiki-e taiki-e commented Oct 16, 2019

As mentioned in #286 (comment), if cargo test contains --doc arguments, only doc test is executed.

@taiki-e
Copy link
Contributor Author

taiki-e commented Oct 16, 2019

Some tests seem broken (because they were merged without being tested on CI).

@@ -47,6 +47,7 @@ fn test_buffered_writer() {
})
}

#[ignore]
Copy link

Choose a reason for hiding this comment

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

I'm curious, what's the error here?

Copy link
Contributor Author

@taiki-e taiki-e Oct 16, 2019

Choose a reason for hiding this comment

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

This assertion is failed:

assert_eq!(w, []);

Error:

---- test_buffered_writer_inner_into_inner_does_not_flush stdout ----
thread 'test_buffered_writer_inner_into_inner_does_not_flush' panicked at 'assertion failed: `(left == right)`
  left: `[0, 1]`,
 right: `[]`', tests/buf_writer.rs:57:9

I think this is because #315 changed the behavior of lnto_inner: https://github.com/async-rs/async-std/pull/315/files#diff-a2b217372e599101d2b0f1dbab63ee2eR205

@taiki-e taiki-e force-pushed the tests branch 2 times, most recently from f54f132 to cf1bcc6 Compare October 16, 2019 18:48
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the test!

I just have one request: could you rename test_buffered_writer_inner_into_inner_does_not_flush to test_buffered_writer_inner_into_inner_flushes? :)

Feel free to merge the PR after the change.

@taiki-e
Copy link
Contributor Author

taiki-e commented Oct 16, 2019

could you rename test_buffered_writer_inner_into_inner_does_not_flush to test_buffered_writer_inner_into_inner_flushes? :)

Done.

Feel free to merge the PR after the change.

I don't have merge right...

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.

1 participant