From 5066c4e3cafd46054a2f5c61d69695588bd2442f Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Fri, 12 Jun 2020 13:35:30 +0200 Subject: [PATCH] Fix CI tempdir is now broken, use tempfile crate instead --- Cargo.toml | 2 +- tests/unix.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 02c3fddcc..95f6071e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,7 @@ portpicker = "0.1.0" surf = { version = "2.0.0-alpha.3", default-features = false, features = ["h1-client"] } serde = { version = "1.0.102", features = ["derive"] } criterion = "0.3.1" -tempdir = "0.3.7" +tempfile = "3.1.0" [[test]] name = "nested" diff --git a/tests/unix.rs b/tests/unix.rs index 80fe55b87..9726f08b5 100644 --- a/tests/unix.rs +++ b/tests/unix.rs @@ -5,12 +5,12 @@ mod unix_tests { use async_std::task; use http_types::{url::Url, Method, Request, Response, StatusCode}; use std::time::Duration; - use tempdir::TempDir; + use tempfile::tempdir; #[test] fn hello_unix_world() -> Result<(), http_types::Error> { task::block_on(async { - let tmp_dir = TempDir::new("tide").expect("Temp dir not created"); + let tmp_dir = tempdir("tide").expect("Temp dir not created"); let sock_path = tmp_dir.path().join("sock"); let sock_path_for_client = sock_path.clone();