Răsfoiți Sursa

Remove debug println in test_evict

The println's surrounding the final cache fill in test_evict that causes
PADDR_B to be evicted are not needed.
Dan Robertson 7 ani în urmă
părinte
comite
0772bb0044
1 a modificat fișierele cu 0 adăugiri și 2 ștergeri
  1. 0 2
      src/iface/neighbor.rs

+ 0 - 2
src/iface/neighbor.rs

@@ -219,9 +219,7 @@ mod test {
         assert_eq!(cache.lookup_pure(&PADDR_B, 1000), Some(HADDR_B));
         assert_eq!(cache.lookup_pure(&PADDR_D, 1000), None);
 
-        println!("{:?}", cache);
         cache.fill(PADDR_D, HADDR_D, 300);
-        println!("{:?}", cache);
         assert_eq!(cache.lookup_pure(&PADDR_B, 1000), None);
         assert_eq!(cache.lookup_pure(&PADDR_D, 1000), Some(HADDR_D));
     }