Skip to content

Commit

Permalink
fix rstest
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Lee committed Jan 4, 2025
1 parent 7eaf9d0 commit e4e9b94
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions bluefin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ repository.workspace = true
bluefin-proto = { path = "../bluefin-proto" }
local-ip-address = { workspace = true }
rand = { workspace = true }
rstest = { workspace = true }
tokio = { workspace = true, features = ["full", "tracing"] }
libc = { workspace = true }
socket2 = { workspace = true }

[dev-dependencies]
local-ip-address = "0.6.3"
rstest = "0.24.0"
rstest = { workspace = true }

[[bin]]
name = "client"
Expand Down
2 changes: 1 addition & 1 deletion bluefin/src/worker/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::{
use bluefin_proto::context::BluefinHost;
use bluefin_proto::error::BluefinError;
use bluefin_proto::BluefinResult;
use tokio::{net::UdpSocket, sync::RwLock};
use tokio::net::UdpSocket;

#[derive(Clone)]
/// [ReaderTxChannel] is the transmission channel for the receiving [ReaderRxChannel]. This channel will when
Expand Down
4 changes: 0 additions & 4 deletions bluefin/src/worker/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ mod tests {
};

#[rstest]
#[test]
#[case(550)]
#[case(1)]
#[case(10)]
Expand Down Expand Up @@ -443,7 +442,6 @@ mod tests {
}

#[rstest]
#[test]
#[case(1000)]
#[case(761)]
#[case(1234)]
Expand Down Expand Up @@ -531,7 +529,6 @@ mod tests {
#[case(55, 56)]
#[case(3, 2000)]
#[case(10, 123)]
#[test]
fn writer_queue_consume_data_for_one_datagram_behaves_as_expected(
#[case] num_iterations: usize,
#[case] payload_size: usize,
Expand Down Expand Up @@ -605,7 +602,6 @@ mod tests {
#[case(9, 15001)]
#[case(1, 150000)]
#[case(432, 234)]
#[test]
fn writer_queue_consume_data_for_multiple_datagram_behaves_as_expected(
#[case] num_iterations: usize,
#[case] payload_size: usize,
Expand Down

0 comments on commit e4e9b94

Please sign in to comment.