Fullnode rpc to exit with unsafe config

This commit is contained in:
Anatoly Yakovenko
2019-03-03 22:01:09 -08:00
committed by Grimes
parent a3016aebaf
commit c299dd390e
11 changed files with 201 additions and 12 deletions

View File

@@ -38,3 +38,20 @@ fn test_spend_and_verify_all_nodes_3() -> () {
num_nodes,
);
}
#[test]
#[should_panic]
fn test_fullnode_exit_safe_config_should_panic_2() -> () {
solana_logger::setup();
let num_nodes = 2;
let local = LocalCluster::new(num_nodes, 10_000, 100);
cluster_tests::fullnode_exit(&local.entry_point_info, num_nodes);
}
#[test]
fn test_fullnode_exit_unsafe_config_2() -> () {
solana_logger::setup();
let num_nodes = 2;
let local = LocalCluster::new_unsafe(num_nodes, 10_000, 100);
cluster_tests::fullnode_exit(&local.entry_point_info, num_nodes);
}