Skip to content

Commit e16fca8

Browse files
committed
switch to the username encode set for a test
This'll also escape `:` just in case someone has a super weird filesystem
1 parent eaf61be commit e16fca8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn test_unix_connection() {
9898

9999
let unix_socket_directory = unix_socket_directories[].split(',').next().unwrap();
100100

101-
let path = url::utf8_percent_encode(unix_socket_directory, url::PASSWORD_ENCODE_SET);
101+
let path = url::utf8_percent_encode(unix_socket_directory, url::USERNAME_ENCODE_SET);
102102
let url = format!("postgres://postgres@{}", path);
103103
let conn = or_fail!(PostgresConnection::connect(url[], &NoSsl));
104104
assert!(conn.finish().is_ok());

0 commit comments

Comments
 (0)