From b272408b051bfffc9f4bcfdacb27e41b5fc13fcb Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Wed, 24 Apr 2024 13:49:37 -0700 Subject: [PATCH] chore: fix main branch test failure (#1240) --- rust/lancedb/src/connection.rs | 1 - rust/lancedb/src/io/object_store.rs | 12 ++++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/rust/lancedb/src/connection.rs b/rust/lancedb/src/connection.rs index 5890f6cf..0dab78c9 100644 --- a/rust/lancedb/src/connection.rs +++ b/rust/lancedb/src/connection.rs @@ -1036,7 +1036,6 @@ mod tests { } #[tokio::test] - #[ignore = "this can't pass due to https://github.com/lancedb/lancedb/issues/1019, enable it after the bug fixed"] async fn test_open_table() { let tmp_dir = tempdir().unwrap(); let uri = tmp_dir.path().to_str().unwrap(); diff --git a/rust/lancedb/src/io/object_store.rs b/rust/lancedb/src/io/object_store.rs index 4e052d65..33542512 100644 --- a/rust/lancedb/src/io/object_store.rs +++ b/rust/lancedb/src/io/object_store.rs @@ -350,8 +350,16 @@ mod test { #[tokio::test] async fn test_e2e() { - let dir1 = tempfile::tempdir().unwrap().into_path(); - let dir2 = tempfile::tempdir().unwrap().into_path(); + let dir1 = tempfile::tempdir() + .unwrap() + .into_path() + .canonicalize() + .unwrap(); + let dir2 = tempfile::tempdir() + .unwrap() + .into_path() + .canonicalize() + .unwrap(); let secondary_store = LocalFileSystem::new_with_prefix(dir2.to_str().unwrap()).unwrap(); let object_store_wrapper = Arc::new(MirroringObjectStoreWrapper {