run tokio-1.12.0 test failed! #4144
Unanswered
RustChater
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't really understand what is happening here. There's no The way you run tests is to clone the repo, enter the
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I run a test:
cd tokio-1.12.1
cargo test --color=always --package tokio --test tcp_echo echo_server
error: There are multiple
tokio
packages in your project, and the specificationtokio
is ambiguous.Please re-run this command with
-p <spec>
where<spec>
is one of the following:file:///Users/xxx/tmp/tokio-1.12.0#tokio:1.12.0
https://github.com/rust-lang/crates.io-index#tokio:1.12.0
Process finished with exit code 101
Follow the prompts, added argument -p, but still got same error.
cargo test --color=always --package tokio --test tcp_echo echo_server -p "file:///Users/xxx/tmp/tokio-1.12.0#tokio:1.12.0"
env:
macos 11.6
stable-x86_64-apple-darwin (default)
rustc 1.55.0 (c8dfcfe04 2021-09-06)
Beta Was this translation helpful? Give feedback.
All reactions