review comments; rename Unsafe to TestOnlyAllowRpcFullnodeExit
This commit is contained in:
committed by
Grimes
parent
5aaaa7f45c
commit
3a4018cd03
@@ -1,7 +1,9 @@
|
||||
extern crate solana;
|
||||
|
||||
use solana::cluster_tests;
|
||||
use solana::fullnode::FullnodeConfig;
|
||||
use solana::local_cluster::LocalCluster;
|
||||
use solana::rpc::JsonRpcConfig;
|
||||
|
||||
#[test]
|
||||
fn test_spend_and_verify_all_nodes_1() -> () {
|
||||
@@ -52,6 +54,8 @@ fn test_fullnode_exit_safe_config_should_panic_2() -> () {
|
||||
fn test_fullnode_exit_unsafe_config_2() -> () {
|
||||
solana_logger::setup();
|
||||
let num_nodes = 2;
|
||||
let local = LocalCluster::new_unsafe(num_nodes, 10_000, 100);
|
||||
let mut fullnode_exit = FullnodeConfig::default();
|
||||
fullnode_exit.rpc_config = JsonRpcConfig::TestOnlyAllowRpcFullnodeExit;
|
||||
let local = LocalCluster::new_with_config(num_nodes, 10_000, 100, &fullnode_exit);
|
||||
cluster_tests::fullnode_exit(&local.entry_point_info, num_nodes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user