1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-12-18 01:43:58 +01: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));