From aba0779162d598ce28fb352146fcbdcd2055ac98 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" <carol.nichols@integer32.com> Date: Mon, 16 Aug 2021 15:32:37 -0400 Subject: [PATCH] fix: Update tests to expect new Display format on ObjectStorePaths --- iox_object_store/src/paths.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/iox_object_store/src/paths.rs b/iox_object_store/src/paths.rs index f150ccafaa..d6e833b94c 100644 --- a/iox_object_store/src/paths.rs +++ b/iox_object_store/src/paths.rs @@ -115,7 +115,10 @@ mod tests { let database_name = DatabaseName::new("clouds").unwrap(); let iox_object_store = IoxObjectStore::new(make_object_store(), server_id, &database_name); - assert_eq!(iox_object_store.root_path.inner.to_string(), "1/clouds/") + assert_eq!( + iox_object_store.root_path.inner.to_string(), + "mem:1/clouds/" + ) } #[test] @@ -125,7 +128,7 @@ mod tests { let iox_object_store = IoxObjectStore::new(make_object_store(), server_id, &database_name); let path = iox_object_store.root_path.join("foo"); - assert_eq!(path.to_string(), "1/clouds/foo/"); + assert_eq!(path.to_string(), "mem:1/clouds/foo/"); } #[test] @@ -135,7 +138,7 @@ mod tests { let iox_object_store = IoxObjectStore::new(make_object_store(), server_id, &database_name); assert_eq!( iox_object_store.transactions_path.inner.to_string(), - "1/clouds/transactions/" + "mem:1/clouds/transactions/" ); } @@ -146,7 +149,7 @@ mod tests { let iox_object_store = IoxObjectStore::new(make_object_store(), server_id, &database_name); assert_eq!( iox_object_store.data_path.inner.to_string(), - "1/clouds/data/" + "mem:1/clouds/data/" ); } }