Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Dec 23, 2024
1 parent 1313627 commit 7b452a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rs/cli/src/cordoned_feature_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ features:

let parsed = fetcher.parse(contents).unwrap();

assert_eq!(parsed.len(), 6)
assert_eq!(parsed.len(), 7)
}

#[test]
Expand Down
4 changes: 3 additions & 1 deletion rs/decentralization/src/nakamoto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ mod tests {
let score_expected = NakamotoScore {
coefficients: IndexMap::from([
(NodeFeature::NodeProvider, 1.),
(NodeFeature::NodeOperator, 1.),
(NodeFeature::DataCenter, 1.),
(NodeFeature::DataCenterOwner, 1.),
(NodeFeature::Area, 1.),
Expand All @@ -538,6 +539,7 @@ mod tests {
value_counts: IndexMap::new(),
controlled_nodes: IndexMap::from([
(NodeFeature::NodeProvider, 1),
(NodeFeature::NodeOperator, 1),
(NodeFeature::DataCenter, 1),
(NodeFeature::DataCenterOwner, 1),
(NodeFeature::Area, 1),
Expand Down Expand Up @@ -854,7 +856,7 @@ mod tests {
// Convert the subnet snapshot to the "Subnet" struct
let subnet_all: DecentralizedSubnet = DecentralizedSubnet::from(subnet_all);
let re_unhealthy_nodes = Regex::new(r"^(gp7wd|e4ysi|qhz4y|2fbvp)-.+$").unwrap();
let subnet_healthy: DecentralizedSubnet = DecentralizedSubnet {
let subnet_healthy = DecentralizedSubnet {
id: subnet_all.id,
nodes: subnet_all
.nodes
Expand Down
1 change: 1 addition & 0 deletions rs/ic-management-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ impl Node {
.map(|d| d.name.clone())
.unwrap_or_else(|| "unknown".to_string()),
),
(NodeFeature::NodeOperator, self.operator.principal.to_string()),
(NodeFeature::NodeProvider, self.operator.provider.principal.to_string()),
])
};
Expand Down

0 comments on commit 7b452a2

Please sign in to comment.