Skip to content

Commit 4d6e334

Browse files
authored
Fix test not to litter in repository (apache#14795)
Before the change, executing the test would create (and leave behind) the `datafusion/execution/DOESNT_EXIST` folder inside source repository.
1 parent 2325b6c commit 4d6e334

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datafusion/execution/src/disk_manager.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ mod tests {
250250

251251
#[test]
252252
fn test_disk_manager_create_spill_folder() {
253-
let config = DiskManagerConfig::new_specified(vec!["DOESNT_EXIST".into()]);
253+
let dir = TempDir::new().unwrap();
254+
let config = DiskManagerConfig::new_specified(vec![dir.path().to_owned()]);
254255

255256
DiskManager::try_new(config)
256257
.unwrap()

0 commit comments

Comments
 (0)