From 47a48dfc4f081eae5975902e347ee24c180a0fe3 Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Wed, 28 Aug 2024 14:49:12 +0800 Subject: [PATCH] fix: integration test --- tests-integration/src/tests/test_util.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests-integration/src/tests/test_util.rs b/tests-integration/src/tests/test_util.rs index 0f93766ec7e9..c81d1c8c8b63 100644 --- a/tests-integration/src/tests/test_util.rs +++ b/tests-integration/src/tests/test_util.rs @@ -191,7 +191,10 @@ pub(crate) async fn distributed() -> Arc { pub(crate) async fn standalone_with_multiple_object_stores() -> Arc { let _ = dotenv::dotenv(); let test_name = uuid::Uuid::new_v4().to_string(); - let storage_types = StorageType::build_storage_types_based_on_env(); + let mut storage_types = StorageType::build_storage_types_based_on_env(); + // File is the default storage, remove it to avoid panic + storage_types.retain(|x| *x == StorageType::File); + let instance = GreptimeDbStandaloneBuilder::new(&test_name) .with_store_providers(storage_types) .build() @@ -202,10 +205,13 @@ pub(crate) async fn standalone_with_multiple_object_stores() -> Arc Arc { let _ = dotenv::dotenv(); let test_name = uuid::Uuid::new_v4().to_string(); - let providers = StorageType::build_storage_types_based_on_env(); + let mut storage_types = StorageType::build_storage_types_based_on_env(); + // File is the default storage, remove it to avoid panic + storage_types.retain(|x| *x == StorageType::File); + let cluster = GreptimeDbClusterBuilder::new(&test_name) .await - .with_store_providers(providers) + .with_store_providers(storage_types) .build() .await; Arc::new(MockDistributedInstance(cluster))