From dd9af492f2a76524a1ad8fbfa214ef3ec04af7df Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 17 Mar 2026 20:51:00 -0700 Subject: [PATCH] Fix DiskType test: use HardDrive variant matching Go's HddType="" Go maps both "" and "hdd" to HardDriveType (empty string). The Rust enum variant is HardDrive, not Hdd. The test referenced a nonexistent Hdd variant causing compilation failure. --- seaweed-volume/src/storage/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seaweed-volume/src/storage/types.rs b/seaweed-volume/src/storage/types.rs index 6bbe9d59e..c75d35ec1 100644 --- a/seaweed-volume/src/storage/types.rs +++ b/seaweed-volume/src/storage/types.rs @@ -625,7 +625,7 @@ mod tests { #[test] fn test_disk_type() { assert_eq!(DiskType::from_string(""), DiskType::HardDrive); - assert_eq!(DiskType::from_string("hdd"), DiskType::Hdd); + assert_eq!(DiskType::from_string("hdd"), DiskType::HardDrive); assert_eq!(DiskType::from_string("SSD"), DiskType::Ssd); assert_eq!( DiskType::from_string("nvme"),