fix the test

This commit is contained in:
Pankaj Garg 2019-01-31 19:00:36 +00:00 committed by Grimes
parent aa1bd603e6
commit 2dd20c38b2
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ mod tests {
assert_eq!(packets[i].meta.size, PACKET_DATA_SIZE);
assert_eq!(packets[i].meta.addr(), saddr);
}
reader.set_nonblocking(true).unwrap();
let _recv = recv_mmsg(&reader, &mut packets[..]);
assert!(start.elapsed().as_secs() < 5);