Disallow localhost in deployment (#1064)

* disallow localhost in deployment

* tests

* fmt

* integration tests do not have a flag to check

* fmt
This commit is contained in:
anatoly yakovenko
2018-08-25 21:09:18 -07:00
committed by GitHub
parent 8e98c7c9d6
commit f7c0d30167
8 changed files with 22 additions and 6 deletions

View File

@ -120,6 +120,7 @@ fn make_tiny_test_entries(start_hash: Hash, num: usize) -> Vec<Entry> {
#[test]
fn test_multi_node_ledger_window() -> result::Result<()> {
assert!(cfg!(feature = "test"));
logger::setup();
let leader_keypair = Keypair::new();
@ -518,6 +519,7 @@ fn test_leader_restart_validator_start_from_old_ledger() -> result::Result<()> {
#[ignore]
fn test_multi_node_dynamic_network() {
logger::setup();
assert!(cfg!(feature = "test"));
let key = "SOLANA_DYNAMIC_NODES";
let num_nodes: usize = match env::var(key) {
Ok(val) => val