refactor(runtime): finish legacy global naming (#4097)

This commit is contained in:
Zhengchao An
2026-06-30 05:50:58 +08:00
committed by GitHub
parent 74aef760f0
commit de19342744
6 changed files with 41 additions and 14 deletions
+3 -3
View File
@@ -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;
}
+1 -1
View File
@@ -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)]