Skip to content

Enable tests on CI#357

Merged
taiki-e merged 2 commits into
async-rs:masterfrom
taiki-e:tests
Oct 16, 2019
Merged

Enable tests on CI#357
taiki-e merged 2 commits into
async-rs:masterfrom
taiki-e:tests

Conversation

@taiki-e

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

Copy link
Copy Markdown
Contributor

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

@taiki-e

taiki-e commented Oct 16, 2019

Copy link
Copy Markdown
Contributor Author

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

Comment thread tests/buf_writer.rs Outdated
})
}

#[ignore]

Copy link
Copy Markdown

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?

@taiki-e taiki-e Oct 16, 2019

Copy link
Copy Markdown
Contributor Author

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

@ghost ghost left a comment

Copy link
Copy Markdown

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

taiki-e commented Oct 16, 2019

Copy link
Copy Markdown
Contributor Author

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

@taiki-e taiki-e merged commit e405544 into async-rs:master Oct 16, 2019
@taiki-e taiki-e deleted the tests branch October 16, 2019 22:06
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