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

xuanwo pushed a commit to branch add-nextcloud-test-for-webdav
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit e5c5d0ff8ed9be25ce49a33b0ebe566856a4b213
Author: Xuanwo <[email protected]>
AuthorDate: Thu Jul 13 22:53:57 2023 +0800

    don't write too much files for test
    
    Signed-off-by: Xuanwo <[email protected]>
---
 core/tests/behavior/list.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/tests/behavior/list.rs b/core/tests/behavior/list.rs
index eed9021f5..bf8aa8339 100644
--- a/core/tests/behavior/list.rs
+++ b/core/tests/behavior/list.rs
@@ -88,7 +88,7 @@ pub async fn test_list_dir(op: Operator) -> Result<()> {
 pub async fn test_list_rich_dir(op: Operator) -> Result<()> {
     op.create_dir("test_list_rich_dir/").await?;
 
-    let mut expected: Vec<String> = (0..=1000)
+    let mut expected: Vec<String> = (0..=100)
         .map(|num| format!("test_list_rich_dir/file-{num}"))
         .collect();
 
@@ -105,7 +105,7 @@ pub async fn test_list_rich_dir(op: Operator) -> Result<()> 
{
         .collect::<Vec<_>>()
         .await;
 
-    let mut objects = op.list("test_list_rich_dir/").await?;
+    let mut objects = op.with_limit(10).list("test_list_rich_dir/").await?;
     let mut actual = vec![];
     while let Some(o) = objects.try_next().await? {
         let path = o.path().to_string();

Reply via email to