fixes test_filter_current flakiness (#14816)
(cherry picked from commit d1df9da7d3
)
This commit is contained in:
committed by
Michael Vines
parent
5471f9373d
commit
700478e6f8
@ -845,8 +845,11 @@ mod test {
|
||||
match value.wallclock().cmp(¤t_value.wallclock()) {
|
||||
Ordering::Less => (),
|
||||
Ordering::Equal => {
|
||||
assert_eq!(value, *current_value);
|
||||
count += 1;
|
||||
// There is a chance that two randomly generated
|
||||
// crds-values have the same label and wallclock.
|
||||
if value == *current_value {
|
||||
count += 1;
|
||||
}
|
||||
}
|
||||
Ordering::Greater => panic!("this should not happen!"),
|
||||
}
|
||||
|
Reference in New Issue
Block a user