Skip to content

Commit 54ea19a

Browse files
committed
---
yaml --- r: 127751 b: refs/heads/snap-stage3 c: 075256a h: refs/heads/master i: 127749: 0081424 127747: 09ff9a0 127743: 205cd49 v: v3
1 parent 53a9f6b commit 54ea19a

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,7 +1,7 @@
11
---
22
refs/heads/master: 49a970f2449a78f28b6c301e542d38593094ca77
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 02e39b05c6d3b9f553076af7273233e161bb76a3
4+
refs/heads/snap-stage3: 075256a0701e23ce56e9c09206d6c8f581c46115
55
refs/heads/try: d9c23fcbaea89871667272a67ecb8d3a512162f3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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

branches/snap-stage3/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)