std: more work on uv tests to endure valgrind's machinations against them

- change port of tcp server test in uv_ll to avoid conflict w/ test in
net::tcp
- a few places the tcp::read fn is used in test w/ a timeout.. suspend
use of the timeout from here on out.
This commit is contained in:
Jeff Olson 2012-05-22 14:07:42 -07:00 committed by Brian Anderson
parent c7656f67ad
commit b0b175214a
2 changed files with 4 additions and 4 deletions

View File

@ -1424,7 +1424,7 @@ mod test {
let sock = result::unwrap(accept_result);
log(debug, "SERVER: successfully accepted"+
"connection!");
let received_req_bytes = sock.read(2000u);
let received_req_bytes = sock.read(0u);
alt received_req_bytes {
result::ok(data) {
server_ch.send(
@ -1492,7 +1492,7 @@ mod test {
log(debug, "SERVER: successfully accepted"+
"connection!");
let received_req_bytes =
sock.read(2000u);
sock.read(0u);
alt received_req_bytes {
result::ok(data) {
server_ch.send(
@ -1529,7 +1529,7 @@ mod test {
let sock = result::unwrap(connect_result);
let resp_bytes = str::bytes(resp);
tcp_write_single(sock, resp_bytes);
let read_result = sock.read(2000u);
let read_result = sock.read(0u);
if read_result.is_failure() {
log(debug, "CLIENT: failure to read");
""

View File

@ -1280,7 +1280,7 @@ mod test {
fn impl_uv_tcp_server_and_request() unsafe {
let bind_ip = "0.0.0.0";
let request_ip = "127.0.0.1";
let port = 8888;
let port = 8887;
let kill_server_msg = "does a dog have buddha nature?";
let server_resp_msg = "mu!";
let client_port = comm::port::<str>();