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/10/26 15:46:23 UTC

[incubator-opendal] 02/02: Fix complete test

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

xuanwo pushed a commit to branch lazy-reader
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit a81b140bf51304a21d3879245446ce4d294cad1c
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Thu Oct 26 23:46:12 2023 +0800

    Fix complete test
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 core/src/layers/complete.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/layers/complete.rs b/core/src/layers/complete.rs
index 222f50348..c5e593a47 100644
--- a/core/src/layers/complete.rs
+++ b/core/src/layers/complete.rs
@@ -791,7 +791,7 @@ mod tests {
         }
 
         async fn read(&self, _: &str, _: OpRead) -> Result<(RpRead, Self::Reader)> {
-            Ok((RpRead::new(), Box::new(())))
+            Ok((RpRead::new(), Box::new(oio::Cursor::new())))
         }
 
         async fn write(&self, _: &str, _: OpWrite) -> Result<(RpWrite, Self::Writer)> {