Replace tempfile with tempdir

This commit is contained in:
Dustin J. Mitchell 2021-04-16 19:29:27 -04:00
parent 9c54985fac
commit c8d6619d71
9 changed files with 34 additions and 87 deletions

View file

@ -15,13 +15,13 @@ pub(crate) fn execute<W: WriteColor>(
mod test {
use super::*;
use crate::invocation::test::*;
use tempdir::TempDir;
use tempfile::TempDir;
#[test]
fn test_add() {
let mut w = test_writer();
let mut replica = test_replica();
let server_dir = TempDir::new("test").unwrap();
let server_dir = TempDir::new().unwrap();
let mut server = test_server(&server_dir);
// Note that the details of the actual sync are tested thoroughly in the taskchampion crate

View file

@ -1,6 +1,6 @@
use std::io;
use taskchampion::{storage, Replica, Server, ServerConfig};
use tempdir::TempDir;
use tempfile::TempDir;
pub(super) fn test_replica() -> Replica {
let storage = storage::InMemoryStorage::new();