Skip to content

Commit

Permalink
add back missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Feb 4, 2024
1 parent 5087780 commit 2186377
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ mod tests {

#[tokio::test]
async fn test_client_cache() {
let client = Client::new(1, Duration::from_secs(1), reqwest::Client::new());
let client =
Client::new(1, Duration::from_secs(1), reqwest::Client::new(), None);
let url = Url::parse("http://example.com").unwrap();
let body: Box<str> = "foo".into();
let response = Response::new(
Expand All @@ -197,7 +198,8 @@ mod tests {

#[tokio::test]
async fn test_client() {
let client = Client::new(0, Duration::from_secs(1), reqwest::Client::new());
let client =
Client::new(0, Duration::from_secs(1), reqwest::Client::new(), None);
let url = Url::parse(YT_SCISHOW_FEED_URL).unwrap();
let resp = client.get(&url).await.unwrap();
assert_eq!(resp.status(), reqwest::StatusCode::OK);
Expand Down

0 comments on commit 2186377

Please sign in to comment.