Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TRIVIAL] requested-timeout-on-problems config camel-case #3307

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/autopilot/src/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,13 +524,13 @@ impl FromStr for Solver {
}
Err(_) => {
requested_timeout_on_problems =
value.to_lowercase() == "requested_timeout_on_problems";
value.to_lowercase() == "requested-timeout-on-problems";
}
}
};

if let Some(value) = parts.get(4) {
requested_timeout_on_problems = value.to_lowercase() == "requested_timeout_on_problems";
requested_timeout_on_problems = value.to_lowercase() == "requested-timeout-on-problems";
}

Ok(Self {
Expand Down Expand Up @@ -780,7 +780,7 @@ mod test {
#[test]
fn parse_driver_with_accepts_unsettled_blocking_flag() {
let argument =
"name1|http://localhost:8080|0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2|requested_timeout_on_problems";
"name1|http://localhost:8080|0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2|requested-timeout-on-problems";
let driver = Solver::from_str(argument).unwrap();
let expected = Solver {
name: "name1".into(),
Expand All @@ -796,7 +796,7 @@ mod test {

#[test]
fn parse_driver_with_threshold_and_accepts_unsettled_blocking_flag() {
let argument = "name1|http://localhost:8080|0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2|1000000000000000000|requested_timeout_on_problems";
let argument = "name1|http://localhost:8080|0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2|1000000000000000000|requested-timeout-on-problems";
let driver = Solver::from_str(argument).unwrap();
let expected = Solver {
name: "name1".into(),
Expand Down
2 changes: 1 addition & 1 deletion crates/e2e/src/setup/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl<'a> Services<'a> {
[
vec![
format!(
"--drivers=test_solver|http://localhost:11088/test_solver|{}|requested_timeout_on_problems",
"--drivers=test_solver|http://localhost:11088/test_solver|{}|requested-timeout-on-problems",
hex::encode(solver.address())
),
"--price-estimation-drivers=test_quoter|http://localhost:11088/test_solver"
Expand Down
Loading