X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-background-processor%2Fsrc%2Flib.rs;h=7d705bdcc3ae05630c53f1806e30b95d337ac919;hb=68149a204f9da3462f15cc108b5efe7a054cd27b;hp=21e9d419471ee6cc5fb619a0480642600096513c;hpb=1ceb41e08b2d76b23d2505a10a88db8d840895ca;p=rust-lightning diff --git a/lightning-background-processor/src/lib.rs b/lightning-background-processor/src/lib.rs index 21e9d419..7d705bdc 100644 --- a/lightning-background-processor/src/lib.rs +++ b/lightning-background-processor/src/lib.rs @@ -1429,8 +1429,8 @@ mod tests { ]; $nodes[0].rapid_gossip_sync.update_network_graph_no_std(&initialization_input[..], Some(1642291930)).unwrap(); - // this should have added two channels - assert_eq!($nodes[0].network_graph.read_only().channels().len(), 3); + // this should have added two channels and pruned the previous one. + assert_eq!($nodes[0].network_graph.read_only().channels().len(), 2); $receive.expect("Network graph not pruned within deadline");