Handle another possible error in a unix pipe test
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.
This commit is contained in:
parent
cb5b21eba7
commit
6c75b73a6a
|
@ -243,7 +243,8 @@ mod tests {
|
|||
let mut stop = false;
|
||||
while !stop{
|
||||
do io_error::cond.trap(|e| {
|
||||
assert_eq!(e.kind, BrokenPipe);
|
||||
assert!(e.kind == BrokenPipe || e.kind == NotConnected,
|
||||
"unknown error {:?}", e);
|
||||
stop = true;
|
||||
}).inside {
|
||||
server.write(buf);
|
||||
|
|
Loading…
Reference in New Issue