mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Replace tempfile with tempdir
This commit is contained in:
parent
9c54985fac
commit
c8d6619d71
9 changed files with 34 additions and 87 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue