Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
update registrar test with generic non-empty test (#2476)
Browse files Browse the repository at this point in the history
* update registrar test with generic non-empty test

* updated test, length check + parsing
  • Loading branch information
jacogr authored and gavofyork committed Oct 5, 2016
1 parent 7526b1d commit 33abb47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ethcore/src/tests/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ fn should_return_registrar() {
IoChannel::disconnected(),
&db_config
).unwrap();
assert_eq!(client.additional_params().get("registrar"), Some(&"52dff57a8a1532e6afb3dc07e2af58bb9eb05b3d".to_owned()));
let params = client.additional_params();
let address = params.get("registrar").unwrap();

assert_eq!(address.len(), 40);
assert!(U256::from_str(address).is_ok());
}

#[test]
Expand Down

0 comments on commit 33abb47

Please sign in to comment.