提交 b0b17521 编写于 作者: J Jeff Olson 提交者: Brian Anderson

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.
上级 c7656f67
......@@ -1424,7 +1424,7 @@ fn run_tcp_test_server(server_ip: str, server_port: uint, resp: str,
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 @@ fn run_tcp_test_server_listener(server_ip: str,
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 @@ fn run_tcp_test_client(server_ip: str, server_port: uint, resp: str,
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");
""
......
......@@ -1280,7 +1280,7 @@ fn impl_uv_tcp_server(server_ip: str,
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>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册