Skip to content

Commit 7227f15

Browse files
authored
removing obsolete test (#419)
1 parent a7f5a55 commit 7227f15

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

node/src/neighborhood/mod.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,38 +2717,6 @@ mod tests {
27172717
assert_eq!(expected_response, result);
27182718
}
27192719

2720-
#[test]
2721-
fn route_query_responds_with_none_when_asked_for_one_hop_round_trip_route_without_consuming_wallet_when_back_route_needs_two_hops(
2722-
) {
2723-
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");
2724-
let mut subject = make_standard_subject();
2725-
subject.min_hops = Hops::OneHop;
2726-
let a = &make_node_record(1234, true);
2727-
let b = &subject.neighborhood_database.root().clone();
2728-
let c = &make_node_record(3456, true);
2729-
{
2730-
let db = &mut subject.neighborhood_database;
2731-
db.add_node(a.clone()).unwrap();
2732-
db.add_node(c.clone()).unwrap();
2733-
let mut single_edge = |a: &NodeRecord, b: &NodeRecord| {
2734-
db.add_arbitrary_half_neighbor(a.public_key(), b.public_key())
2735-
};
2736-
single_edge(a, b);
2737-
single_edge(b, c);
2738-
single_edge(c, a);
2739-
}
2740-
let addr: Addr<Neighborhood> = subject.start();
2741-
let sub: Recipient<RouteQueryMessage> = addr.recipient::<RouteQueryMessage>();
2742-
let msg = RouteQueryMessage::data_indefinite_route_request(None, 10000);
2743-
2744-
let future = sub.send(msg);
2745-
2746-
System::current().stop_with_code(0);
2747-
system.run();
2748-
let result = future.wait().unwrap();
2749-
assert_eq!(result, None);
2750-
}
2751-
27522720
#[test]
27532721
fn route_query_responds_with_none_when_asked_for_two_hop_one_way_route_without_consuming_wallet(
27542722
) {

0 commit comments

Comments
 (0)