Skip to content

Commit

Permalink
removing obsolete test (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
czarte authored Mar 11, 2024
1 parent a7f5a55 commit 7227f15
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions node/src/neighborhood/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Neighborhood> = subject.start();
let sub: Recipient<RouteQueryMessage> = addr.recipient::<RouteQueryMessage>();
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(
) {
Expand Down

0 comments on commit 7227f15

Please sign in to comment.