Try to clean up test

This commit is contained in:
Carl Lerche
2017-08-04 20:54:49 -07:00
parent 650b40fc90
commit 90df6e3879
2 changed files with 35 additions and 4 deletions

View File

@@ -32,13 +32,12 @@ fn send_recv_headers_only() {
.body(()).unwrap();
info!("sending request");
let stream = h2.request(request, true).unwrap();
let mut stream = h2.request(request, true).unwrap();
// Wait
h2.wait().ok().unwrap();
let resp = h2.run(poll_fn(|| stream.poll_response())).unwrap();
// Try to get response
println!("GOT: {:?}", stream.wait().ok().unwrap());
println!("GOT: {:?}", resp);
// let resp = stream.select2(h2).wait().ok().unwrap();