This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch ci-fix in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 7524359ef77a298c0b9981b604c842fe50469fd5 Author: Xuanwo <[email protected]> AuthorDate: Thu Jun 8 15:29:29 2023 +0800 ci: Fix append test should use copy_buf to avoid call times 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");
