Use tester.accounts

This commit is contained in:
Gav Wood 2016-11-23 20:37:35 +01:00 committed by GitHub
parent 9f3a042f55
commit 6c686023e0

View File

@ -134,9 +134,7 @@ fn should_be_able_to_kill_account() {
let res = tester.io.handle_request_sync(&request); let res = tester.io.handle_request_sync(&request);
assert_eq!(res, Some(response.into())); assert_eq!(res, Some(response.into()));
let request = r#"{"jsonrpc": "2.0", "method": "parity_accountsInfo", "params": [], "id": 1}"#; let accounts = tester.accounts.accounts().unwrap();
let res = tester.io.handle_request_sync(request); assert_eq!(accounts.len(), 0);
let response = format!("{{\"jsonrpc\":\"2.0\",\"result\":{{}},\"id\":1}}");
assert_eq!(res, Some(response));
} }