Skip to content

Commit c0222cd

Browse files
committed
auto merge of #10133 : alexcrichton/rust/another-error, r=thestinger
This cropped up on the bsd bot, and if it's an error that gets thrown then it's fine to just whitelist another type of error in the test.
2 parents 8852cb7 + 6c75b73 commit c0222cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/rt/io/net/unix.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ mod tests {
243243
let mut stop = false;
244244
while !stop{
245245
do io_error::cond.trap(|e| {
246-
assert_eq!(e.kind, BrokenPipe);
246+
assert!(e.kind == BrokenPipe || e.kind == NotConnected,
247+
"unknown error {:?}", e);
247248
stop = true;
248249
}).inside {
249250
server.write(buf);

0 commit comments

Comments
 (0)