Fix url breakage

This commit is contained in:
Steven Fackler
2015-04-22 22:09:07 -07:00
parent 8b43f0e3cf
commit afb3bcf08b

View File

@@ -89,7 +89,8 @@ fn test_unix_connection() {
let unix_socket_directory = unix_socket_directories.split(',').next().unwrap();
let path = url::utf8_percent_encode(unix_socket_directory, url::USERNAME_ENCODE_SET);
let path = url::percent_encoding::utf8_percent_encode(
unix_socket_directory, url::percent_encoding::USERNAME_ENCODE_SET);
let url = format!("postgres://postgres@{}", path);
let conn = or_panic!(Connection::connect(&url[..], &SslMode::None));
assert!(conn.finish().is_ok());