Skip to content

Commit 43ddd6d

Browse files
authored
test(client): port legacy client integration tests (#77)
1 parent 324408b commit 43ddd6d

File tree

5 files changed

+1060
-1
lines changed

5 files changed

+1060
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
env:
101101
# Can't enable tcp feature since Miri does not support the tokio runtime
102102
MIRIFLAGS: "-Zmiri-disable-isolation"
103-
run: cargo miri test
103+
run: cargo miri test --all-features
104104

105105
features:
106106
name: features

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ bytes = "1"
3636
http-body-util = "0.1.0"
3737
tokio = { version = "1", features = ["macros", "test-util"] }
3838
tokio-test = "0.4"
39+
pretty_env_logger = "0.5"
3940

4041
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies]
4142
pnet_datalink = "0.34.0"

src/rt/tokio.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ impl<T> TokioIo<T> {
7272
&self.inner
7373
}
7474

75+
/// Mut borrow the inner type.
76+
pub fn inner_mut(&mut self) -> &mut T {
77+
&mut self.inner
78+
}
79+
7580
/// Consume this wrapper and get the inner type.
7681
pub fn into_inner(self) -> T {
7782
self.inner

0 commit comments

Comments
 (0)