Fixing tests

This commit is contained in:
Tomusdrw 2016-09-26 12:24:52 +02:00
parent ef1c8b1fc7
commit 4acd6cbe3b
2 changed files with 2 additions and 2 deletions

View File

@ -231,6 +231,6 @@ impl<C, M, S: ?Sized> Ethcore for EthcoreClient<C, M, S> where M: MinerService +
try!(self.active());
try!(expect_no_params(params));
to_value(&take_weak!(self.miner).all_transactions().into_iter().map(Into::into).collect::<Vec<Transaction>>())
Ok(to_value(&take_weak!(self.miner).all_transactions().into_iter().map(Into::into).collect::<Vec<Transaction>>()))
}
}

View File

@ -299,5 +299,5 @@ fn rpc_ethcore_pending_transactions() {
let request = r#"{"jsonrpc": "2.0", "method": "ethcore_pendingTransactions", "params":[], "id": 1}"#;
let response = r#"{"jsonrpc":"2.0","result":[],"id":1}"#;
assert_eq!(io.handle_request(request), Some(response.to_owned()));
assert_eq!(io.handle_request_sync(request), Some(response.to_owned()));
}