test(app): remove object store fallback (#4104)

This commit is contained in:
Zhengchao An
2026-06-30 08:08:54 +08:00
committed by GitHub
parent 27e1cb5ffd
commit f6689f5b39
6 changed files with 13 additions and 19 deletions
-4
View File
@@ -876,10 +876,6 @@ mod tests {
};
let endpoint_pools = EndpointServerPools(vec![pool_endpoints]);
if let Some(store) = runtime_sources::object_store() {
return (temp_dir, store, endpoint_pools);
}
init_local_disks(endpoint_pools.clone()).await.expect("test local disks");
let store = ECStore::new(
"127.0.0.1:0".parse().expect("test addr"),
@@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#[cfg(test)]
use super::super::storage_api::context::ECStore;
use super::super::storage_api::context::EndpointServerPools;
use super::super::storage_api::context::bucket::metadata_sys::BucketMetadataSys;
use super::super::storage_api::context::runtime::{
@@ -185,11 +183,6 @@ pub fn transition_state() -> Arc<TransitionState> {
get_global_transition_state()
}
#[cfg(test)]
pub fn object_store() -> Option<Arc<ECStore>> {
super::super::storage_api::context::runtime::new_object_layer_fn()
}
pub fn server_config() -> Option<Config> {
get_global_server_config()
}
-5
View File
@@ -176,11 +176,6 @@ pub(crate) mod runtime {
crate::storage::storage_api::get_global_transition_state()
}
#[cfg(test)]
pub(crate) fn new_object_layer_fn() -> Option<Arc<crate::storage::storage_api::ECStore>> {
crate::storage::storage_api::ecstore_global::new_object_layer_fn()
}
pub(crate) fn set_object_store_resolver(resolver: Arc<ObjectStoreResolver>) -> bool {
crate::storage::storage_api::set_object_store_resolver(resolver)
}
-2
View File
@@ -375,8 +375,6 @@ pub(crate) mod ecstore_event {
}
pub(crate) mod ecstore_global {
#[cfg(test)]
pub(crate) use rustfs_ecstore::api::global::new_object_layer_fn;
pub(crate) use rustfs_ecstore::api::global::{
get_global_bucket_monitor, get_global_deployment_id, get_global_endpoints_opt, get_global_lock_client,
get_global_lock_clients, get_global_region, global_rustfs_port, is_dist_erasure, set_global_endpoints, set_global_region,