瀏覽代碼

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 年之前
父節點
當前提交
0772bb0044
共有 1 個文件被更改,包括 0 次插入2 次删除
  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));
     }