From 123011f6eed6f0170e7a36ffd212974f2c8f36e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojte=CC=8Cch=20Parka=CC=81n?= Date: Fri, 23 Feb 2024 16:13:43 +0100 Subject: [PATCH] removing obsolete test --- node/src/neighborhood/mod.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/node/src/neighborhood/mod.rs b/node/src/neighborhood/mod.rs index 4a0ba99ba..e24a3a892 100644 --- a/node/src/neighborhood/mod.rs +++ b/node/src/neighborhood/mod.rs @@ -2717,38 +2717,6 @@ mod tests { assert_eq!(expected_response, result); } - #[test] - fn route_query_responds_with_none_when_asked_for_one_hop_round_trip_route_without_consuming_wallet_when_back_route_needs_two_hops( - ) { - let system = System::new("route_query_responds_with_none_when_asked_for_one_hop_round_trip_route_without_consuming_wallet_when_back_route_needs_two_hops"); - let mut subject = make_standard_subject(); - subject.min_hops = Hops::OneHop; - let a = &make_node_record(1234, true); - let b = &subject.neighborhood_database.root().clone(); - let c = &make_node_record(3456, true); - { - let db = &mut subject.neighborhood_database; - db.add_node(a.clone()).unwrap(); - db.add_node(c.clone()).unwrap(); - let mut single_edge = |a: &NodeRecord, b: &NodeRecord| { - db.add_arbitrary_half_neighbor(a.public_key(), b.public_key()) - }; - single_edge(a, b); - single_edge(b, c); - single_edge(c, a); - } - let addr: Addr = subject.start(); - let sub: Recipient = addr.recipient::(); - let msg = RouteQueryMessage::data_indefinite_route_request(None, 10000); - - let future = sub.send(msg); - - System::current().stop_with_code(0); - system.run(); - let result = future.wait().unwrap(); - assert_eq!(result, None); - } - #[test] fn route_query_responds_with_none_when_asked_for_two_hop_one_way_route_without_consuming_wallet( ) {