Skip to content

Commit

Permalink
Update futures-tls tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandudey committed Aug 21, 2016
1 parent 630a5a6 commit e17cf71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion futures-tls/tests/google.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fn fetch_google() {
read_to_end(socket, Vec::new())
});

let data = t!(l.run(data));
let (_, data) = t!(l.run(data));
assert!(data.starts_with(b"HTTP/1.0 200 OK"));
assert!(data.ends_with(b"</html>"));
}
Expand Down
6 changes: 3 additions & 3 deletions futures-tls/tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ fn client_to_server() {
});

// Finally, run everything!
let (amt, data) = t!(l.run(sent.join(received)));
let (amt, (_, data)) = t!(l.run(sent.join(received)));
assert_eq!(amt, AMT);
assert!(data == vec![9; amt as usize]);
}
Expand Down Expand Up @@ -488,7 +488,7 @@ fn server_to_client() {
});

// Finally, run everything!
let (amt, data) = t!(l.run(sent.join(received)));
let (amt, (_, data)) = t!(l.run(sent.join(received)));
assert_eq!(amt, AMT);
assert!(data == vec![9; amt as usize]);
}
Expand Down Expand Up @@ -538,7 +538,7 @@ fn one_byte_at_a_time() {
read_to_end(socket, Vec::new())
});

let (amt, data) = t!(l.run(sent.join(received)));
let (amt, (_, data)) = t!(l.run(sent.join(received)));
assert_eq!(amt, AMT);
assert!(data == vec![9; amt as usize]);
}

0 comments on commit e17cf71

Please sign in to comment.