Skip to content

Commit

Permalink
test: Increate copy/move nested path test depth (#1932)
Browse files Browse the repository at this point in the history
Signed-off-by: suyanhanx <suyanhanx@gmail.com>
  • Loading branch information
suyanhanx authored Apr 13, 2023
1 parent 8dfd6d9 commit 15783b8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
7 changes: 6 additions & 1 deletion core/tests/behavior/blocking_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ pub fn test_copy_nested(op: BlockingOperator) -> Result<()> {

op.write(&source_path, source_content.clone())?;

let target_path = format!("{}/{}", uuid::Uuid::new_v4(), uuid::Uuid::new_v4());
let target_path = format!(
"{}/{}/{}",
uuid::Uuid::new_v4(),
uuid::Uuid::new_v4(),
uuid::Uuid::new_v4()
);

op.copy(&source_path, &target_path)?;

Expand Down
7 changes: 6 additions & 1 deletion core/tests/behavior/blocking_rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ pub fn test_rename_nested(op: BlockingOperator) -> Result<()> {

op.write(&source_path, source_content.clone())?;

let target_path = format!("{}/{}", uuid::Uuid::new_v4(), uuid::Uuid::new_v4());
let target_path = format!(
"{}/{}/{}",
uuid::Uuid::new_v4(),
uuid::Uuid::new_v4(),
uuid::Uuid::new_v4()
);

op.rename(&source_path, &target_path)?;

Expand Down
7 changes: 6 additions & 1 deletion core/tests/behavior/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ pub async fn test_copy_nested(op: Operator) -> Result<()> {

op.write(&source_path, source_content.clone()).await?;

let target_path = format!("{}/{}", uuid::Uuid::new_v4(), uuid::Uuid::new_v4());
let target_path = format!(
"{}/{}/{}",
uuid::Uuid::new_v4(),
uuid::Uuid::new_v4(),
uuid::Uuid::new_v4()
);

op.copy(&source_path, &target_path).await?;

Expand Down
7 changes: 6 additions & 1 deletion core/tests/behavior/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ pub async fn test_rename_nested(op: Operator) -> Result<()> {

op.write(&source_path, source_content.clone()).await?;

let target_path = format!("{}/{}", uuid::Uuid::new_v4(), uuid::Uuid::new_v4());
let target_path = format!(
"{}/{}/{}",
uuid::Uuid::new_v4(),
uuid::Uuid::new_v4(),
uuid::Uuid::new_v4()
);

op.rename(&source_path, &target_path).await?;

Expand Down

0 comments on commit 15783b8

Please sign in to comment.