From 79a577031c062a4e3f79f39c8d18ea7edb8a425e Mon Sep 17 00:00:00 2001 From: Guillaume Pasquet Date: Thu, 24 Feb 2022 07:28:57 +0000 Subject: Fix tests --- src/executor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/executor.rs b/src/executor.rs index f78fd2a..bd948b5 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -145,7 +145,7 @@ mod tests { fn test_make_req_simple_get() { let executor = Executor::new(Context::empty()); let bfile = BarbFile::from_str("#GET^http://foo.bar\n\n").unwrap(); - let req = executor.make_req(&bfile, false); + let req = executor.make_req(&bfile, false, false); assert_eq!(req.url(), "http://foo.bar"); assert_eq!(req.method(), "GET"); @@ -155,7 +155,7 @@ mod tests { fn test_make_req_simple_headers() { let executor = Executor::new(Context::empty()); let bfile = BarbFile::from_str("#GET^http://foo.bar\n#Foo: Bar\n#Bar: Baz\n\n").unwrap(); - let req = executor.make_req(&bfile, false); + let req = executor.make_req(&bfile, false, false); assert_eq!( req.header_names(), -- cgit v1.2.3