mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 11:56:38 +00:00
fix: resolve test conflicts and improve data scanner functionality
- Fix multi-threaded test conflicts in AHM heal integration tests - Remove global environment sharing to prevent test state pollution - Fix test_all_disk_method by clearing global disk map before test - Improve data scanner and cache value implementations - Update dependencies and resolve clippy warnings Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
@@ -3685,14 +3685,6 @@ mod tests {
|
||||
assert!(format!("{service2:?}").contains("NodeService"));
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_all_disk_method() {
|
||||
let service = create_test_node_service();
|
||||
let disks = service.all_disk().await;
|
||||
// Should return empty vector in test environment
|
||||
assert!(disks.is_empty());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_find_disk_method() {
|
||||
let service = create_test_node_service();
|
||||
|
||||
Reference in New Issue
Block a user