mirror of https://github.com/fafhrd91/actix-net
test: fix panic in tokio stream construction
This commit is contained in:
parent
9d4b1673aa
commit
15f0b63492
|
@ -71,5 +71,7 @@ async fn new_with_builder() {
|
||||||
srv.connect().unwrap();
|
srv.connect().unwrap();
|
||||||
|
|
||||||
// connect to alt service defined in custom ServerBuilder
|
// connect to alt service defined in custom ServerBuilder
|
||||||
TcpStream::from_std(net::TcpStream::connect(alt_addr).unwrap()).unwrap();
|
let stream = net::TcpStream::connect(alt_addr).unwrap();
|
||||||
|
stream.set_nonblocking(true).unwrap();
|
||||||
|
TcpStream::from_std(stream).unwrap();
|
||||||
}
|
}
|
||||||
|
|
2
justfile
2
justfile
|
@ -73,7 +73,7 @@ test-all toolchain="": (test toolchain) (test-docs toolchain)
|
||||||
doc *args: && doc-set-workspace-crates
|
doc *args: && doc-set-workspace-crates
|
||||||
rm -f "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"
|
rm -f "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"
|
||||||
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --no-deps --workspace {{ all_crate_features }} {{ args }}
|
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --no-deps --workspace {{ all_crate_features }} {{ args }}
|
||||||
|
|
||||||
[private]
|
[private]
|
||||||
doc-set-workspace-crates:
|
doc-set-workspace-crates:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
Loading…
Reference in New Issue