stop using old tempdir crate

This commit is contained in:
Scott Lamb
2021-05-17 13:08:01 -07:00
parent 13b497e243
commit 603f02b686
7 changed files with 30 additions and 61 deletions

View File

@@ -2506,7 +2506,10 @@ mod tests {
testutil::init();
let conn = setup_conn();
let db = Database::new(clock::RealClocks {}, conn, true).unwrap();
let tmpdir = tempdir::TempDir::new("moonfire-nvr-test").unwrap();
let tmpdir = tempfile::Builder::new()
.prefix("moonfire-nvr-test")
.tempdir()
.unwrap();
let path = tmpdir.path().to_str().unwrap().to_owned();
let sample_file_dir_id = { db.lock() }.add_sample_file_dir(path).unwrap();
let mut c = CameraChange {