From c577e460f64e5a9caddc42e438a338340bf0e84a Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 15 Aug 2014 19:35:27 -0700 Subject: [PATCH] Fix test --- tests/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.rs b/tests/test.rs index 38cb8871..76be15c0 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -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));