We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e33f2f0 commit 619dd47Copy full SHA for 619dd47
1 file changed
tests/test.rs
@@ -9,6 +9,7 @@ extern crate openssl;
9
10
use openssl::ssl::{SslContext, Sslv3};
11
use std::io::timer;
12
+use std::time::Duration;
13
14
use postgres::{PostgresNoticeHandler,
15
PostgresNotification,
@@ -614,7 +615,7 @@ fn test_cancel_query() {
614
615
let cancel_data = conn.cancel_data();
616
617
spawn(proc() {
- timer::sleep(500);
618
+ timer::sleep(Duration::milliseconds(500));
619
assert!(postgres::cancel_query("postgres://postgres@localhost", &NoSsl,
620
cancel_data).is_ok());
621
});
0 commit comments