Skip to content

Commit 9314d2f

Browse files
committed
---
yaml --- r: 127820 b: refs/heads/master c: 075256a h: refs/heads/master v: v3
1 parent dd050e0 commit 9314d2f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 02e39b05c6d3b9f553076af7273233e161bb76a3
2+
refs/heads/master: 075256a0701e23ce56e9c09206d6c8f581c46115
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: aa98b25c4f0c10729dff37c699904ad57b8fbda8
55
refs/heads/try: d9c23fcbaea89871667272a67ecb8d3a512162f3

trunk/src/test/run-pass/tcp-connect-timeouts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ iotest!(fn timeout_error() {
9999

100100
iotest!(fn connect_timeout_zero() {
101101
let addr = next_test_ip4();
102-
assert!(TcpStream::connect_timeout(&addr, Duration::milliseconds(0)).is_err());
102+
assert!(TcpStream::connect_timeout(addr, Duration::milliseconds(0)).is_err());
103103
})
104104

105105
iotest!(fn connect_timeout_negative() {
106106
let addr = next_test_ip4();
107-
assert!(TcpStream::connect_timeout(&addr, Duration::milliseconds(-1)).is_err());
107+
assert!(TcpStream::connect_timeout(addr, Duration::milliseconds(-1)).is_err());
108108
})
109109

trunk/src/test/run-pass/tcp-stress.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ extern crate debug;
2323
use std::io::net::tcp::{TcpListener, TcpStream};
2424
use std::io::{Acceptor, Listener};
2525
use std::task::TaskBuilder;
26+
use std::time::Duration;
2627

2728
#[start]
2829
fn start(argc: int, argv: *const *const u8) -> int {
@@ -33,7 +34,7 @@ fn main() {
3334
// This test has a chance to time out, try to not let it time out
3435
spawn(proc() {
3536
use std::io::timer;
36-
timer::sleep(30 * 1000);
37+
timer::sleep(Duration::milliseconds(30 * 1000));
3738
println!("timed out!");
3839
unsafe { libc::exit(1) }
3940
});

0 commit comments

Comments
 (0)