Commit 9ddbdcc0 authored by RILLING Louis's avatar RILLING Louis
Browse files

tanproc: Help diagnose test::recv_delayed failures

parent c5bd5c94
Pipeline #209541 passed with stages
in 26 minutes and 54 seconds
......@@ -614,7 +614,8 @@ mod test {
assert_eq!(dst, remote_vsg_address!());
assert_eq!(buffer, EXPECTED_MSG);
let total_usec = tv.tv_sec as u64 * 1_000_000 + tv.tv_usec as u64;
assert!(delay_micros <= total_usec && total_usec <= 10 * delay_micros);
assert!(delay_micros <= total_usec, "Message received too early: before {}us instead of after {}us", total_usec, delay_micros);
assert!(total_usec <= 10 * delay_micros, "Message received really too late: short before {}us instead of short after {}us", total_usec, delay_micros);
context.stop();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment