Skip to content

Commit 2205780

Browse files
committed
f Use test-specific temp dir
... as otherwise we'll remove the entire temp dir on drop.
1 parent eec507f commit 2205780

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning-persister/src/fs_store.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ mod tests {
301301

302302
#[test]
303303
fn read_write_remove_list_persist() {
304-
let temp_path = std::env::temp_dir();
304+
let mut temp_path = std::env::temp_dir();
305+
temp_path.push("test_read_write_remove_list_persist");
305306
let fs_store = FilesystemStore::new(temp_path);
306307
do_read_write_remove_list_persist(&fs_store);
307308
}

0 commit comments

Comments
 (0)