diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-04-01 11:15:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 11:15:37 -0400 |
commit | 1c37ac33526dc45ad0b3f83ca8294dbb55548096 (patch) | |
tree | 426978168928c5e7c2223e4906005fa23fb34cd6 /cli/http_cache.rs | |
parent | 8ca4c1819f3e7a8716c68034e256355334d53b44 (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.rs | 6 |
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(); |