aboutsummaryrefslogtreecommitdiffstats
path: root/src/router/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/router/tests.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/router/tests.rs b/src/router/tests.rs
index 7fe2b7a..f574096 100644
--- a/src/router/tests.rs
+++ b/src/router/tests.rs
@@ -185,6 +185,11 @@ mod tests {
let ip: IpAddr = ip.parse().unwrap();
peer.add_subnet(mask, len);
+ for _ in 0..1024 {
+ let msg = make_packet(1024, ip);
+ router.send(msg).unwrap();
+ }
+
b.iter(|| {
opaque.store(0, Ordering::SeqCst);
// wait till 10 MB