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

Fix cfg flag for tcp tests #414

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Fix cfg flag for tcp tests #414

merged 1 commit into from
Jan 9, 2024

Conversation

SabatierBoris
Copy link
Contributor

Issue

tcp test for serde_transport isn't run due to wrong cfg flag

Fix

Use same cfg flag for test as for the tcp module : https://github.com/google/tarpc/blob/master/tarpc/src/serde_transport.rs#L120

@SabatierBoris
Copy link
Contributor Author

If we look on the CI log of the last PR merge : https://github.com/google/tarpc/actions/runs/7369173712/job/20061626669?pr=411 we don't find "serde_transport::tests::tcp"

But now we have it : https://github.com/google/tarpc/actions/runs/7459294314/job/20294984374?pr=414#step:10:34

@tikue
Copy link
Collaborator

tikue commented Jan 9, 2024

Thanks!

@tikue tikue merged commit 006a9f3 into google:master Jan 9, 2024
5 checks passed
#[tokio::test]
async fn tcp_on_existing_transport() -> io::Result<()> {
use super::tcp;

let transport = TcpListener::bind("0.0.0.0:0").await?;
let transport = tokio::net::TcpListener::bind("0.0.0.0:0").await?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was this change needed?

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