Skip to content

Commit

Permalink
unit-tests issues fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Dec 22, 2023
1 parent db7106b commit 5c7fa18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct Args {

/// run in client mode; value is the server's address
#[arg(short, long, value_name = "host", conflicts_with = "server")]
pub client: Option<std::net::IpAddr>,
pub client: Option<String>,

/// run in reverse-mode (server sends, client receives)
#[arg(short = 'R', long, conflicts_with = "server")]
Expand Down Expand Up @@ -109,7 +109,7 @@ pub struct Args {
/// primarily to avoid including TCP ramp-up in averages;
/// using this option may result in disagreement between bytes sent and received,
/// since data can be in-flight across time-boundaries
#[arg(short, long, default_value = "0", value_name = "seconds", conflicts_with = "server")]
#[arg(short = 'O', long, default_value = "0", value_name = "seconds", conflicts_with = "server")]
pub omit: usize,

/// use no-delay mode for TCP tests, disabling Nagle's Algorithm
Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub fn execute(args: &args::Args) -> BoxResult<()> {
let mut download_config = prepare_download_configuration(args, test_id.as_bytes())?;

//connect to the server
let mut stream = connect_to_server(&args.client.unwrap().to_string(), &args.port)?;
let mut stream = connect_to_server(args.client.as_ref().unwrap(), &args.port)?;
let server_addr = stream.peer_addr()?;

//scaffolding to track and relay the streams and stream-results associated with this test
Expand Down

0 comments on commit 5c7fa18

Please sign in to comment.