mirror of
https://github.com/actix/actix-web.git
synced 2025-02-21 13:26:18 +00:00
Fix tests.
This commit is contained in:
parent
c3ae9997fc
commit
8393d09a0f
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue