Skip to content

Commit 619dd47

Browse files
committed
Update for Duration API (yay!)
1 parent e33f2f0 commit 619dd47

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ extern crate openssl;
99

1010
use openssl::ssl::{SslContext, Sslv3};
1111
use std::io::timer;
12+
use std::time::Duration;
1213

1314
use postgres::{PostgresNoticeHandler,
1415
PostgresNotification,
@@ -614,7 +615,7 @@ fn test_cancel_query() {
614615
let cancel_data = conn.cancel_data();
615616

616617
spawn(proc() {
617-
timer::sleep(500);
618+
timer::sleep(Duration::milliseconds(500));
618619
assert!(postgres::cancel_query("postgres://postgres@localhost", &NoSsl,
619620
cancel_data).is_ok());
620621
});

0 commit comments

Comments
 (0)