mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 06:13:14 +00:00
refactor(runtime): finish legacy global naming (#4097)
This commit is contained in:
@@ -958,7 +958,7 @@ mod tests {
|
||||
use time::OffsetDateTime;
|
||||
|
||||
if !bucket_metadata_sys_initialized() {
|
||||
eprintln!("Skipping test: GLOBAL_BucketMetadataSys not initialized");
|
||||
eprintln!("Skipping test: bucket metadata system not initialized");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1539,7 +1539,7 @@ mod tests {
|
||||
#[tokio::test]
|
||||
async fn test_apply_cors_headers_unmatched_origin_with_cors_config() {
|
||||
if get_global_bucket_metadata_sys().is_none() {
|
||||
eprintln!("Skipping test: GLOBAL_BucketMetadataSys not initialized");
|
||||
eprintln!("Skipping test: bucket metadata system not initialized");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1577,7 +1577,7 @@ mod tests {
|
||||
#[tokio::test]
|
||||
async fn test_apply_cors_headers_credentialed_request_with_wildcard_origin() {
|
||||
if get_global_bucket_metadata_sys().is_none() {
|
||||
eprintln!("Skipping test: GLOBAL_BucketMetadataSys not initialized");
|
||||
eprintln!("Skipping test: bucket metadata system not initialized");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -947,7 +947,7 @@ pub(crate) async fn load_bucket_metadata(api: Arc<ECStore>, bucket: &str) -> Res
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) fn bucket_metadata_sys_initialized() -> bool {
|
||||
ecstore_bucket::metadata_sys::GLOBAL_BucketMetadataSys.get().is_some()
|
||||
ecstore_bucket::metadata_sys::get_global_bucket_metadata_sys().is_some()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user