Skip to content

Commit 0177ddf

Browse files
authored
chore(test-utils): revert #5725
We cannot publish the crates using `libp2p-test-utils`, as cargo seems to required `dev-dependencies` to also be published Pull-Request: #5810.
1 parent d57081f commit 0177ddf

File tree

53 files changed

+330
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+330
-180
lines changed

Cargo.lock

Lines changed: 18 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ members = [
3030
"misc/quickcheck-ext",
3131
"misc/rw-stream-sink",
3232
"misc/server",
33-
"misc/test-utils",
3433
"misc/webrtc-utils",
3534
"muxers/mplex",
3635
"muxers/test-harness",
@@ -114,7 +113,6 @@ libp2p-websocket = { version = "0.44.1", path = "transports/websocket" }
114113
libp2p-websocket-websys = { version = "0.4.1", path = "transports/websocket-websys" }
115114
libp2p-webtransport-websys = { version = "0.4.1", path = "transports/webtransport-websys" }
116115
libp2p-yamux = { version = "0.46.0", path = "muxers/yamux" }
117-
libp2p-test-utils = { version = "0.1.0", path = "misc/test-utils" }
118116

119117
# External dependencies
120118
async-std-resolver = { version = "0.25.0-alpha.4", default-features = false }

misc/multistream-select/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async-std = { version = "1.6.2", features = ["attributes"] }
2323
futures_ringbuf = "0.4.0"
2424
quickcheck = { workspace = true }
2525
rw-stream-sink = { workspace = true }
26-
libp2p-test-utils = { workspace = true }
26+
tracing-subscriber = { workspace = true, features = ["env-filter"] }
2727

2828
# Passing arguments to the docsrs builder in order to properly document cfg's.
2929
# More information: https://docs.rs/about/builds#cross-compiling

misc/multistream-select/src/dialer_select.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ mod tests {
214214
future::timeout,
215215
net::{TcpListener, TcpStream},
216216
};
217-
use libp2p_test_utils::EnvFilter;
218217
use quickcheck::{Arbitrary, Gen, GenRange};
219218
use tracing::metadata::LevelFilter;
219+
use tracing_subscriber::EnvFilter;
220220

221221
use super::*;
222222
use crate::listener_select_proto;
@@ -275,11 +275,13 @@ mod tests {
275275
ListenerProtos(listen_protos): ListenerProtos,
276276
DialPayload(dial_payload): DialPayload,
277277
) {
278-
libp2p_test_utils::with_env_filter(
279-
EnvFilter::builder()
280-
.with_default_directive(LevelFilter::DEBUG.into())
281-
.from_env_lossy(),
282-
);
278+
let _ = tracing_subscriber::fmt()
279+
.with_env_filter(
280+
EnvFilter::builder()
281+
.with_default_directive(LevelFilter::DEBUG.into())
282+
.from_env_lossy(),
283+
)
284+
.try_init();
283285

284286
async_std::task::block_on(async move {
285287
let listener = TcpListener::bind("0.0.0.0:0").await.unwrap();

misc/test-utils/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

misc/test-utils/Cargo.toml

Lines changed: 0 additions & 17 deletions
This file was deleted.

misc/test-utils/src/lib.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

muxers/mplex/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ libp2p-muxer-test-harness = { path = "../test-harness" }
3232
libp2p-plaintext = { workspace = true }
3333
libp2p-tcp = { workspace = true, features = ["async-io"] }
3434
quickcheck = { workspace = true }
35-
libp2p-test-utils = { workspace = true }
35+
tracing-subscriber = { workspace = true, features = ["env-filter"] }
3636

3737
[[bench]]
3838
name = "split_send_size"

0 commit comments

Comments
 (0)