You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/07/13 14:54:11 UTC
[incubator-opendal] 02/02: don't write too much files for test
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 <gi...@xuanwo.io>
AuthorDate: Thu Jul 13 22:53:57 2023 +0800
don't write too much files for test
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
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();