More tests

This commit is contained in:
Carl Lerche
2017-07-11 14:28:40 -07:00
parent 4e0e01aa5c
commit fab9fa8ed2
3 changed files with 119 additions and 10 deletions

View File

@@ -38,6 +38,12 @@ pub fn main() {
// Receive a request
conn.into_future()
.then(|res| {
let (frame, conn) = res.unwrap();
println!("Zomg frame; {:?}", frame);
conn.into_future()
})
.then(|res| {
let (frame, conn) = res.unwrap();
println!("Zomg frame; {:?}", frame);
@@ -47,12 +53,6 @@ pub fn main() {
conn.send_response(1.into(), response, false)
})
.then(|res| {
let conn = res.unwrap();
println!("... sending data frame");
conn.send_data(1.into(), "hello".into(), false)
})
.then(|res| {
let conn = res.unwrap();
println!("... sending next frame");