This commit is contained in:
Steven Fackler 2014-08-15 19:35:27 -07:00
parent dec56db1d6
commit c577e460f6

View File

@ -96,7 +96,7 @@ fn test_unix_connection() {
}
let unix_socket_directory = unix_socket_directories.as_slice()
.splitn(',', 1).next().unwrap();
.split(',').next().unwrap();
let url = format!("postgres://postgres@{}", url::encode_component(unix_socket_directory));
let conn = or_fail!(PostgresConnection::connect(url.as_slice(), &NoSsl));