Skip to content

Commit 7abdc1b

Browse files
committed
Add tokio/rt to required features for async tests
Also add the full test command to ct.sh (without it, tests execute)
1 parent 3d44979 commit 7abdc1b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ct.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ if [ $TRAVIS_RUST_VERSION = "stable" ] || [ $TRAVIS_RUST_VERSION = "beta" ] || [
2222
cargo test --features pkcs12_rc2
2323
cargo test --features force_aesni_support
2424
cargo test --features dsa
25+
# without these, tests marked with tokio::test do not run, but report OK.
26+
cargo test --features=std,threading,tokio,tokio/net,tokio/io-util,tokio/macros,tokio/rt
2527

2628
elif [ $TRAVIS_RUST_VERSION = $CORE_IO_NIGHTLY ]; then
2729
cargo +$CORE_IO_NIGHTLY test --no-default-features --features core_io,rdrand,time,custom_time,custom_gmtime_r

mbedtls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ required-features = ["std"]
9292
[[test]]
9393
name = "async_session"
9494
path = "tests/async_session.rs"
95-
required-features = ["std", "threading", "tokio", "tokio/net", "tokio/io-util", "tokio/macros"]
95+
required-features = ["std", "threading", "tokio", "tokio/net", "tokio/io-util", "tokio/macros", "tokio/rt"]
9696

9797
[[test]]
9898
name = "client_server"

0 commit comments

Comments
 (0)