feat: add tests for invalid/failure cases (#6951)

This commit is contained in:
Sunny Gleason
2019-11-14 11:41:26 -05:00
committed by GitHub
parent dbbd9663b2
commit 42af8b199f
2 changed files with 73 additions and 0 deletions

View File

@ -22,6 +22,8 @@ fn test_rpc_client() {
solana_clap_utils::version!()
);
assert!(client.get_account(&bob_pubkey).is_err());
assert_eq!(client.get_balance(&bob_pubkey).unwrap(), 0);
assert_eq!(client.get_balance(&alice.pubkey()).unwrap(), 1_000_000);