This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 15783b84 test: Increate copy/move nested path test depth (#1932)
15783b84 is described below

commit 15783b84ae4ee7ec2913918a13e8b0aa61ee0ffb
Author: Suyan <[email protected]>
AuthorDate: Thu Apr 13 10:12:27 2023 +0800

    test: Increate copy/move nested path test depth (#1932)
    
    Signed-off-by: suyanhanx <[email protected]>
---
 core/tests/behavior/blocking_copy.rs   | 7 ++++++-
 core/tests/behavior/blocking_rename.rs | 7 ++++++-
 core/tests/behavior/copy.rs            | 7 ++++++-
 core/tests/behavior/rename.rs          | 7 ++++++-
 4 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/core/tests/behavior/blocking_copy.rs 
b/core/tests/behavior/blocking_copy.rs
index 583a31fb..8cf724c4 100644
--- a/core/tests/behavior/blocking_copy.rs
+++ b/core/tests/behavior/blocking_copy.rs
@@ -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)?;
 
diff --git a/core/tests/behavior/blocking_rename.rs 
b/core/tests/behavior/blocking_rename.rs
index 093078fe..7222b230 100644
--- a/core/tests/behavior/blocking_rename.rs
+++ b/core/tests/behavior/blocking_rename.rs
@@ -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)?;
 
diff --git a/core/tests/behavior/copy.rs b/core/tests/behavior/copy.rs
index 8f0efbec..e09f6b8d 100644
--- a/core/tests/behavior/copy.rs
+++ b/core/tests/behavior/copy.rs
@@ -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?;
 
diff --git a/core/tests/behavior/rename.rs b/core/tests/behavior/rename.rs
index 97d15479..14744869 100644
--- a/core/tests/behavior/rename.rs
+++ b/core/tests/behavior/rename.rs
@@ -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?;
 

Reply via email to