Skip to content

Commit

Permalink
test: fix warnings on windows (#1895)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Jan 6, 2025
1 parent 614d6db commit bfe04ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/provider/src/ext/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ mod test {
}

#[tokio::test]
#[cfg(not(windows))]
#[cfg_attr(windows, ignore)]
async fn debug_trace_call_many() {
async_ci_only(|| async move {
run_with_tempdir("reth-test-", |temp_dir| async move {
Expand Down
4 changes: 2 additions & 2 deletions crates/provider/src/ext/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ mod test {
}

#[tokio::test]
#[cfg(not(windows))]
#[cfg_attr(windows, ignore)]
async fn trace_call() {
async_ci_only(|| async move {
run_with_tempdir("reth-test-", |temp_dir| async move {
Expand Down Expand Up @@ -241,7 +241,7 @@ mod test {
}

#[tokio::test]
#[cfg(not(windows))]
#[cfg_attr(windows, ignore)]
async fn trace_call_many() {
async_ci_only(|| async move {
run_with_tempdir("reth-test-", |temp_dir| async move {
Expand Down
6 changes: 4 additions & 2 deletions crates/provider/src/provider/trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1255,8 +1255,9 @@ mod tests {
assert_eq!(0, num);
}

#[cfg(all(feature = "hyper", not(windows)))]
#[cfg(feature = "hyper")]
#[tokio::test]
#[cfg_attr(windows, ignore)]
async fn test_auth_layer_transport() {
crate::ext::test::async_ci_only(|| async move {
use alloy_node_bindings::Reth;
Expand Down Expand Up @@ -1341,8 +1342,9 @@ mod tests {
}
}

#[cfg(all(feature = "ws", not(windows)))]
#[cfg(feature = "ws")]
#[tokio::test]
#[cfg_attr(windows, ignore)]
async fn subscribe_blocks_ws() {
use futures::stream::StreamExt;

Expand Down
3 changes: 2 additions & 1 deletion crates/rpc-client/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ mod test {
}

#[test]
#[cfg(all(feature = "ipc", not(windows)))]
#[cfg(feature = "ipc")]
#[cfg_attr(windows, ignore)]
fn test_parsing_ipc() {
use alloy_node_bindings::Anvil;

Expand Down

0 comments on commit bfe04ea

Please sign in to comment.