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 f9e954d78 ci: Fix append test should use copy_buf to avoid call times
(#2436)
f9e954d78 is described below
commit f9e954d78b247695e93b3fd60ee6544e6e5884b1
Author: Xuanwo <[email protected]>
AuthorDate: Thu Jun 8 15:57:18 2023 +0800
ci: Fix append test should use copy_buf to avoid call times (#2436)
Signed-off-by: Xuanwo <[email protected]>
---
core/tests/behavior/append.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/tests/behavior/append.rs b/core/tests/behavior/append.rs
index 49871a907..2838c2559 100644
--- a/core/tests/behavior/append.rs
+++ b/core/tests/behavior/append.rs
@@ -213,7 +213,7 @@ pub async fn test_appender_futures_copy(op: Operator) ->
Result<()> {
// Wrap a buf reader here to make sure content is read in 1MiB chunks.
let mut cursor = BufReader::with_capacity(1024 * 1024,
Cursor::new(content.clone()));
- futures::io::copy(&mut cursor, &mut a).await?;
+ futures::io::copy_buf(&mut cursor, &mut a).await?;
a.close().await?;
let meta = op.stat(&path).await.expect("stat must succeed");