From 6c686023e070f7c7bb9361b2cb4a1e81a82c53d5 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 23 Nov 2016 20:37:35 +0100 Subject: [PATCH] Use `tester.accounts` --- rpc/src/v1/tests/mocked/parity_accounts.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rpc/src/v1/tests/mocked/parity_accounts.rs b/rpc/src/v1/tests/mocked/parity_accounts.rs index c0982e60c..d2dfe3544 100644 --- a/rpc/src/v1/tests/mocked/parity_accounts.rs +++ b/rpc/src/v1/tests/mocked/parity_accounts.rs @@ -134,9 +134,7 @@ fn should_be_able_to_kill_account() { let res = tester.io.handle_request_sync(&request); assert_eq!(res, Some(response.into())); - let request = r#"{"jsonrpc": "2.0", "method": "parity_accountsInfo", "params": [], "id": 1}"#; - let res = tester.io.handle_request_sync(request); - let response = format!("{{\"jsonrpc\":\"2.0\",\"result\":{{}},\"id\":1}}"); - assert_eq!(res, Some(response)); + let accounts = tester.accounts.accounts().unwrap(); + assert_eq!(accounts.len(), 0); }