Skip to content

Commit d76c080

Browse files
committed
fix test failure
1 parent b9146bb commit d76c080

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

odorobo/src/actors/scheduler_actor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,10 @@ mod tests {
12581258
inverse: true,
12591259
requirements: vec![requirement(Operator::In, &["backend"])],
12601260
};
1261-
assert!(evaluate_affinity_rule(&[&metadata], &non_matching_rule));
1261+
assert!(evaluate_affinity_rule(
1262+
&[(&metadata.labels, &metadata.annotations)],
1263+
&non_matching_rule,
1264+
));
12621265

12631266
let empty_rule = AffinityRule {
12641267
strictness: AffinityStrictness::Required,

0 commit comments

Comments
 (0)