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

suyanhanx pushed a commit to branch empty-file-test
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/empty-file-test by this push:
     new 614ec11c1 remove empty file write test
614ec11c1 is described below

commit 614ec11c169a2c9ee756a87bba46f04fbd032af3
Author: suyanhanx <[email protected]>
AuthorDate: Fri Sep 8 17:47:20 2023 +0800

    remove empty file write test
    
    Signed-off-by: suyanhanx <[email protected]>
---
 core/tests/behavior/write.rs | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/core/tests/behavior/write.rs b/core/tests/behavior/write.rs
index a617e6d0a..10c9e8c1a 100644
--- a/core/tests/behavior/write.rs
+++ b/core/tests/behavior/write.rs
@@ -47,7 +47,6 @@ pub fn behavior_write_tests(op: &Operator) -> Vec<Trial> {
         test_create_dir,
         test_create_dir_existing,
         test_write_only,
-        test_write_empty_file,
         test_write_with_dir_path,
         test_write_with_special_chars,
         test_write_with_cache_control,
@@ -136,19 +135,6 @@ pub async fn test_write_only(op: Operator) -> Result<()> {
     Ok(())
 }
 
-/// Write empty file should succeed.
-pub async fn test_write_empty_file(op: Operator) -> Result<()> {
-    let path = uuid::Uuid::new_v4().to_string();
-
-    op.write(&path, Bytes::new()).await?;
-
-    let meta = op.stat(&path).await.expect("stat must succeed");
-    assert_eq!(meta.content_length(), 0);
-
-    op.delete(&path).await.expect("delete must succeed");
-    Ok(())
-}
-
 /// Write file with dir path should return an error
 pub async fn test_write_with_dir_path(op: Operator) -> Result<()> {
     let path = format!("{}/", uuid::Uuid::new_v4());

Reply via email to