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

Expand UDS tests #1143

Merged
merged 10 commits into from
Nov 17, 2019
Merged

Conversation

kleimkuhler
Copy link
Contributor

A few issues have been opened related to the recently added UDS resources. The
issues are all behavior that tests should have caught. This PR splits uds.rs
into unix_stream.rs, unix_listener.rs, and unix_datagram.rs test files.
Each of these test files tests the methods on it's respective resource as well
as mio::Source implementations.

Signed-off-by: Kevin Leimkuhler kleimkuhler@icloud.com

Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
@kleimkuhler
Copy link
Contributor Author

This will fail on MacOS, iOS, and Solaris until #1142 is merged.

Copy link
Collaborator

@Thomasdezeeuw Thomasdezeeuw left a comment

Choose a reason for hiding this comment

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

Some initial comments, still need to check UnixListener and UnixStream tests. Overall it looks good.

tests/unix_datagram.rs Show resolved Hide resolved
tests/unix_datagram.rs Outdated Show resolved Hide resolved
tests/unix_datagram.rs Show resolved Hide resolved
tests/unix_datagram.rs Show resolved Hide resolved
tests/unix_datagram.rs Outdated Show resolved Hide resolved
tests/unix_datagram.rs Outdated Show resolved Hide resolved
tests/unix_datagram.rs Show resolved Hide resolved
tests/unix_datagram.rs Show resolved Hide resolved
tests/unix_datagram.rs Show resolved Hide resolved
tests/unix_datagram.rs Show resolved Hide resolved
Copy link
Collaborator

@Thomasdezeeuw Thomasdezeeuw left a comment

Choose a reason for hiding this comment

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

Another small comment.

Also in #1145 I intend to remove the assert_ok and asser_err macros and merge expect_readiness with expect_events.

tests/unix_listener.rs Show resolved Hide resolved
…ve-uds-tests

Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
@Thomasdezeeuw
Copy link
Collaborator

Can you rebase this on master? GitHub says there are conflicts. If its the same thing as last time (when I couldn't rebase, but you could), feel free to merge.

@kleimkuhler kleimkuhler merged commit ff1b9f2 into tokio-rs:master Nov 17, 2019
@kleimkuhler kleimkuhler deleted the kleimkuhler/improve-uds-tests branch November 17, 2019 17:38
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.

2 participants