Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing obsolete test #419

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading