From: Elias Rohrer Date: Tue, 22 Aug 2023 14:45:09 +0000 (+0200) Subject: f Use test-specific temp dir X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=cf6126b1477d475915b896764389f444f2713c2f;p=rust-lightning f Use test-specific temp dir ... as otherwise we'll remove the entire temp dir on drop. --- diff --git a/lightning-persister/src/fs_store.rs b/lightning-persister/src/fs_store.rs index 76ec93a9a..e1fd9811b 100644 --- a/lightning-persister/src/fs_store.rs +++ b/lightning-persister/src/fs_store.rs @@ -301,7 +301,8 @@ mod tests { #[test] fn read_write_remove_list_persist() { - let temp_path = std::env::temp_dir(); + let mut temp_path = std::env::temp_dir(); + temp_path.push("test_read_write_remove_list_persist"); let fs_store = FilesystemStore::new(temp_path); do_read_write_remove_list_persist(&fs_store); }