fixes test_filter_current flakiness (#14816)
This commit is contained in:
parent
5700e835ef
commit
d1df9da7d3
|
@ -870,9 +870,12 @@ mod test {
|
||||||
match value.wallclock().cmp(¤t_value.wallclock()) {
|
match value.wallclock().cmp(¤t_value.wallclock()) {
|
||||||
Ordering::Less => (),
|
Ordering::Less => (),
|
||||||
Ordering::Equal => {
|
Ordering::Equal => {
|
||||||
assert_eq!(value, *current_value);
|
// There is a chance that two randomly generated
|
||||||
|
// crds-values have the same label and wallclock.
|
||||||
|
if value == *current_value {
|
||||||
count += 1;
|
count += 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Ordering::Greater => panic!("this should not happen!"),
|
Ordering::Greater => panic!("this should not happen!"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue