From 36660c19ab0b063c5853b41573806b3aafaea9fa Mon Sep 17 00:00:00 2001 From: evenyag Date: Fri, 10 May 2024 19:34:26 +0800 Subject: [PATCH] chore: revert change --- .../src/sst/index/creator/temp_provider.rs | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/mito2/src/sst/index/creator/temp_provider.rs b/src/mito2/src/sst/index/creator/temp_provider.rs index 853b3282c800..ee80aaa0a63c 100644 --- a/src/mito2/src/sst/index/creator/temp_provider.rs +++ b/src/mito2/src/sst/index/creator/temp_provider.rs @@ -167,17 +167,14 @@ mod tests { reader.read_to_end(&mut buf).await.unwrap(); assert_eq!(buf, b"foo"); - // OpenDAL might return the following error: The directory is not empty. - let _ = provider.cleanup().await; - - // provider.cleanup().await.unwrap(); - - // assert!(provider - // .manager - // .store() - // .list(location.dir_to_cleanup()) - // .await - // .unwrap() - // .is_empty()); + provider.cleanup().await.unwrap(); + + assert!(provider + .manager + .store() + .list(location.dir_to_cleanup()) + .await + .unwrap() + .is_empty()); } }