summaryrefslogtreecommitdiff
path: root/cli/http_cache.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-04-01 11:15:37 -0400
committerGitHub <noreply@github.com>2022-04-01 11:15:37 -0400
commit1c37ac33526dc45ad0b3f83ca8294dbb55548096 (patch)
tree426978168928c5e7c2223e4906005fa23fb34cd6 /cli/http_cache.rs
parent8ca4c1819f3e7a8716c68034e256355334d53b44 (diff)
chore(tests): use custom temp dir creation for the tests (#14153)
Diffstat (limited to 'cli/http_cache.rs')
-rw-r--r--cli/http_cache.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/http_cache.rs b/cli/http_cache.rs
index 27ec90d9d..eb6aa3f0f 100644
--- a/cli/http_cache.rs
+++ b/cli/http_cache.rs
@@ -188,11 +188,11 @@ mod tests {
use super::*;
use std::collections::HashMap;
use std::io::Read;
- use tempfile::TempDir;
+ use test_util::TempDir;
#[test]
fn test_create_cache() {
- let dir = TempDir::new().unwrap();
+ let dir = TempDir::new();
let mut cache_path = dir.path().to_owned();
cache_path.push("foobar");
// HttpCache should be created lazily on first use:
@@ -219,7 +219,7 @@ mod tests {
#[test]
fn test_get_set() {
- let dir = TempDir::new().unwrap();
+ let dir = TempDir::new();
let cache = HttpCache::new(dir.path());
let url = Url::parse("https://deno.land/x/welcome.ts").unwrap();
let mut headers = HashMap::new();