Skip to content

Commit

Permalink
chore: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
eredotpkfr committed Sep 17, 2024
1 parent 41a099c commit b8d3131
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/cache_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ mod requesters {
types::config::RequesterConfig,
};

const TEST_URL: &str = "http://foo.com";

#[tokio::test]
async fn get_by_type_test() {
for rtype in RequesterType::iter() {
Expand All @@ -27,7 +29,7 @@ mod requesters {
(USER_AGENT, HeaderValue::from_static("x-api-key")),
(CONTENT_LENGTH, HeaderValue::from_static("10000")),
]),
proxy: Some("http://foo.com".to_string()),
proxy: Some(TEST_URL.to_string()),
};

for requester in cache::ALL_REQUESTERS.values() {
Expand Down

0 comments on commit b8d3131

Please sign in to comment.