Merge pull request #788 from ethcore/test-fix

Auto detect available port (with fixed test)
This commit is contained in:
Gav Wood
2016-03-20 19:43:57 +01:00
8 changed files with 87 additions and 63 deletions

View File

@@ -146,7 +146,7 @@ mod tests {
fn it_can_be_started() {
let spec = get_test_spec();
let temp_path = RandomTempPath::new();
let service = ClientService::start(ClientConfig::default(), spec, NetworkConfiguration::new_with_port(40456), &temp_path.as_path());
let service = ClientService::start(ClientConfig::default(), spec, NetworkConfiguration::new_local(), &temp_path.as_path());
assert!(service.is_ok());
}
}