Skip to content

Commit

Permalink
Fix test not to litter in repository
Browse files Browse the repository at this point in the history
Before the change, executing the test would create (and leave behind)
the `datafusion/execution/DOESNT_EXIST` folder inside source repository.
  • Loading branch information
findepi committed Feb 20, 2025
1 parent 28c97fc commit be3084e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/execution/src/disk_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ mod tests {

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

DiskManager::try_new(config)
.unwrap()
Expand Down

0 comments on commit be3084e

Please sign in to comment.