1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-21 09:23:54 +00:00

Fix tests.

This commit is contained in:
Robert G. Jakabosky 2018-08-27 00:31:31 +08:00
parent c3ae9997fc
commit 8393d09a0f

View file

@ -611,7 +611,7 @@ mod tests {
let readbuf = BytesMut::new();
let settings = Rc::new(wrk_settings());
let mut h1 = Http1::new(Rc::clone(&settings), buf, None, readbuf);
let mut h1 = Http1::new(Rc::clone(&settings), buf, None, readbuf, true);
h1.poll_io();
h1.poll_io();
assert_eq!(h1.tasks.len(), 1);
@ -623,7 +623,7 @@ mod tests {
let readbuf = BytesMut::new();
let settings = Rc::new(wrk_settings());
let mut h1 = Http1::new(Rc::clone(&settings), buf, None, readbuf);
let mut h1 = Http1::new(Rc::clone(&settings), buf, None, readbuf, true);
h1.poll_io();
h1.poll_io();
assert!(h1.flags.contains(Flags::ERROR));