From 619dd47fcafe2e3441b74fc95223a034f8961e84 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 14 Aug 2014 20:00:13 -0700 Subject: [PATCH] Update for Duration API (yay!) --- tests/test.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test.rs b/tests/test.rs index ab33499a..38cb8871 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -9,6 +9,7 @@ extern crate openssl; use openssl::ssl::{SslContext, Sslv3}; use std::io::timer; +use std::time::Duration; use postgres::{PostgresNoticeHandler, PostgresNotification, @@ -614,7 +615,7 @@ fn test_cancel_query() { let cancel_data = conn.cancel_data(); spawn(proc() { - timer::sleep(500); + timer::sleep(Duration::milliseconds(500)); assert!(postgres::cancel_query("postgres://postgres@localhost", &NoSsl, cancel_data).is_ok()); });