Skip to content

Commit

Permalink
Change default options
Browse files Browse the repository at this point in the history
  • Loading branch information
hkctkuy committed Jan 10, 2024
1 parent a1f0ae4 commit 530a464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
6 changes: 3 additions & 3 deletions casr/src/bin/casr-cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ fn main() -> Result<()> {
.value_name("STRATEGY")
.action(ArgAction::Set)
.value_parser(["Diam", "Dist"])
.default_value("Dist")
.default_value("Diam")
.help("Strategy for inner cluster choosing when updating"),
)
.arg(
Expand All @@ -634,7 +634,7 @@ fn main() -> Result<()> {
.value_name("STRATEGY")
.action(ArgAction::Set)
.value_parser(["Delta", "Diam", "Dist"])
.default_value("Dist")
.default_value("Diam")
.help("Strategy for outer cluster choosing when updating"),
)
.arg(
Expand All @@ -643,7 +643,7 @@ fn main() -> Result<()> {
.value_name("LEVEL")
.action(ArgAction::Set)
.value_parser(["Loyal", "Soft", "Hard"])
.default_value("Loyal")
.default_value("Soft")
.help("Cluster tolerance level to new CASR reports")
)
.arg(
Expand Down
15 changes: 0 additions & 15 deletions casr/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2750,21 +2750,6 @@ fn test_casr_cluster_u() {

assert_eq!(clusters_cnt, 1, "Clusters count mismatch.");

let re = Regex::new(
r"Number of reports before crashline deduplication in new clusters: (?P<before>\d+)",
)
.unwrap();
let before_cnt = re
.captures(&res)
.unwrap()
.name("before")
.map(|x| x.as_str())
.unwrap()
.parse::<u32>()
.unwrap();

assert_eq!(before_cnt, 2, "Before count mismatch.");

let re = Regex::new(
r"Number of reports after crashline deduplication in new clusters: (?P<after>\d+)",
)
Expand Down

0 comments on commit 530a464

Please sign in to comment.