Tweak error reporting in io::net::tcp tests
Errors can be printed with {}, printing with {:?} does not work very
well.
Not actually related to this PR, but it came up when running the tests
and now is as good a time to fix it as any.
This commit is contained in:
@@ -623,7 +623,7 @@ mod test {
|
||||
Ok(..) => fail!(),
|
||||
Err(ref e) => {
|
||||
assert!(e.kind == NotConnected || e.kind == EndOfFile,
|
||||
"unknown kind: {:?}", e.kind);
|
||||
"unknown kind: {}", e.kind);
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -648,7 +648,7 @@ mod test {
|
||||
Ok(..) => fail!(),
|
||||
Err(ref e) => {
|
||||
assert!(e.kind == NotConnected || e.kind == EndOfFile,
|
||||
"unknown kind: {:?}", e.kind);
|
||||
"unknown kind: {}", e.kind);
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -673,7 +673,7 @@ mod test {
|
||||
assert!(e.kind == ConnectionReset ||
|
||||
e.kind == BrokenPipe ||
|
||||
e.kind == ConnectionAborted,
|
||||
"unknown error: {:?}", e);
|
||||
"unknown error: {}", e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -700,7 +700,7 @@ mod test {
|
||||
assert!(e.kind == ConnectionReset ||
|
||||
e.kind == BrokenPipe ||
|
||||
e.kind == ConnectionAborted,
|
||||
"unknown error: {:?}", e);
|
||||
"unknown error: {}", e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user