diff --git a/core/src/crds_value.rs b/core/src/crds_value.rs index 85c2ed17e2..dd95bcfa4a 100644 --- a/core/src/crds_value.rs +++ b/core/src/crds_value.rs @@ -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!"), }