Skip to content

Commit 8c9e6e6

Browse files
committed
chore: use the tempdir crate in a predictable way for set_tbl_properties
Signed-off-by: R. Tyler Croy <[email protected]>
1 parent 245a1f5 commit 8c9e6e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/core/src/operations/filesystem_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct FileSystemCheckBuilder {
5757
pub struct FileSystemCheckMetrics {
5858
/// Was this a dry run
5959
pub dry_run: bool,
60-
/// Files that wrere removed successfully
60+
/// Files that were removed successfully
6161
#[serde(
6262
serialize_with = "serialize_vec_string",
6363
deserialize_with = "deserialize_vec_string"

crates/core/src/operations/set_tbl_properties.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ pub mod tests {
136136
use crate::DeltaOps;
137137
use crate::writer::test_utils::create_initialized_table;
138138
use std::collections::HashMap;
139-
use std::env::temp_dir;
139+
use tempfile::tempdir;
140140

141141
#[tokio::test]
142142
pub async fn test_set_tbl_properties() -> crate::DeltaResult<()> {
143-
let temp_loc = temp_dir().join("test_table");
144-
let ops = DeltaOps(create_initialized_table(temp_loc.to_str().unwrap(), &[]).await);
143+
let temp_loc = tempdir()?;
144+
let ops = DeltaOps(create_initialized_table(temp_loc.path().to_str().unwrap(), &[]).await);
145145
let props = HashMap::from([
146146
("delta.minReaderVersion".to_string(), "3".to_string()),
147147
("delta.minWriterVersion".to_string(), "7".to_string()),

0 commit comments

Comments
 (0)