test: 给disks_layout增加单元测试

This commit is contained in:
shiro.lee
2024-07-02 23:35:15 +08:00
parent a225663049
commit fb949bec56
3 changed files with 422 additions and 19 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ pub struct ECStore {
impl ECStore {
pub async fn new(address: String, endpoints: Vec<String>) -> Result<Self> {
let layouts = DisksLayout::new(&endpoints)?;
let layouts = DisksLayout::try_from(endpoints.as_slice())?;
let mut deployment_id = None;