Skip to content

Commit

Permalink
feat: port legacy client integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dswij committed Dec 25, 2023
1 parent 324408b commit d5347c7
Show file tree
Hide file tree
Showing 5 changed files with 1,060 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
env:
# Can't enable tcp feature since Miri does not support the tokio runtime
MIRIFLAGS: "-Zmiri-disable-isolation"
run: cargo miri test
run: cargo miri test --all-features

features:
name: features
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ bytes = "1"
http-body-util = "0.1.0"
tokio = { version = "1", features = ["macros", "test-util"] }
tokio-test = "0.4"
pretty_env_logger = "0.5"

[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies]
pnet_datalink = "0.34.0"
Expand Down
5 changes: 5 additions & 0 deletions src/rt/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ impl<T> TokioIo<T> {
&self.inner
}

/// Mut borrow the inner type.
pub fn inner_mut(&mut self) -> &mut T {
&mut self.inner
}

/// Consume this wrapper and get the inner type.
pub fn into_inner(self) -> T {
self.inner
Expand Down
Loading

0 comments on commit d5347c7

Please sign in to comment.