Skip to content

Commit 34aaf76

Browse files
committed
---
yaml --- r: 214873 b: refs/heads/beta c: 39abcef h: refs/heads/master i: 214871: ac26a07 v: v3
1 parent de39f76 commit 34aaf76

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 69a0e1af9553ad50ee2d9c9176470ddeef70717c
26+
refs/heads/beta: 39abcef0a792579b5712ff03138c4822058e9582
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/libstd/net/tcp.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,9 @@ mod tests {
941941
assert!(kind == ErrorKind::WouldBlock || kind == ErrorKind::TimedOut);
942942
});
943943
assert!(wait > Duration::from_millis(5));
944-
assert!(wait < Duration::from_millis(15));
944+
// windows will sometimes extend this by ~500ms, so we'll just take the
945+
// fact that we did time out as a win :(
946+
assert!(cfg!(windows) || wait < Duration::from_millis(15));
945947
}
946948

947949
#[test]
@@ -964,6 +966,8 @@ mod tests {
964966
assert!(kind == ErrorKind::WouldBlock || kind == ErrorKind::TimedOut);
965967
});
966968
assert!(wait > Duration::from_millis(5));
967-
assert!(wait < Duration::from_millis(15));
969+
// windows will sometimes extend this by ~500ms, so we'll just take the
970+
// fact that we did time out as a win :(
971+
assert!(cfg!(windows) || wait < Duration::from_millis(15));
968972
}
969973
}

branches/beta/src/libstd/net/udp.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@ mod tests {
397397
assert!(kind == ErrorKind::WouldBlock || kind == ErrorKind::TimedOut);
398398
});
399399
assert!(wait > Duration::from_millis(5));
400-
assert!(wait < Duration::from_millis(15));
400+
// windows will sometimes extend this by ~500ms, so we'll just take the
401+
// fact that we did time out as a win :(
402+
assert!(cfg!(windows) || wait < Duration::from_millis(15));
401403
}
402404

403405
#[test]
@@ -418,6 +420,8 @@ mod tests {
418420
assert!(kind == ErrorKind::WouldBlock || kind == ErrorKind::TimedOut);
419421
});
420422
assert!(wait > Duration::from_millis(5));
421-
assert!(wait < Duration::from_millis(15));
423+
// windows will sometimes extend this by ~500ms, so we'll just take the
424+
// fact that we did time out as a win :(
425+
assert!(cfg!(windows) || wait < Duration::from_millis(15));
422426
}
423427
}

0 commit comments

Comments
 (0)