-
Notifications
You must be signed in to change notification settings - Fork 341
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
Enable tests on CI #357
Conversation
Some tests seem broken (because they were merged without being tested on CI). |
tests/buf_writer.rs
Outdated
@@ -47,6 +47,7 @@ fn test_buffered_writer() { | |||
}) | |||
} | |||
|
|||
#[ignore] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assertion is failed:
Line 57 in ca80ca9
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
f54f132
to
cf1bcc6
Compare
There was a problem hiding this 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.
Done.
I don't have merge right... |
As mentioned in #286 (comment), if cargo test contains --doc arguments, only doc test is executed.