Skip to content

Commit

Permalink
Made RPC integration test target a local throwaway network node
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Nov 27, 2019
1 parent c110e00 commit f0245c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tendermint/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ mod rpc {
#[test]
#[ignore]
fn abci_query() {
let key = Path::from_str("foo").unwrap();
let key = Path::from_str("unpopulated_key").unwrap();
let abci_query = localhost_rpc_client()
.abci_query(Some(key), vec![], None, false)
.unwrap();
assert_eq!(abci_query.key.as_ref().unwrap(), "foo");
assert_eq!(abci_query.key.as_ref().unwrap(), "");
assert_eq!(abci_query.value.as_ref(), None);
}

Expand Down Expand Up @@ -100,8 +100,7 @@ mod rpc {
// For lack of better things to test
assert_eq!(
status.validator_info.voting_power.value(),
0,
"don't integration test against a validator"
10
);
}
}

0 comments on commit f0245c3

Please sign in to comment.