mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-07 13:53:12 +00:00
test StorageInfoHandler
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#![cfg(test)]
|
||||
|
||||
use ecstore::{disk::VolumeInfo, store_api::StorageInfo};
|
||||
use ecstore::disk::VolumeInfo;
|
||||
use protos::{
|
||||
models::{PingBody, PingBodyBuilder},
|
||||
node_service_time_out_client,
|
||||
@@ -118,7 +118,7 @@ async fn storage_info() -> Result<(), Box<dyn Error>> {
|
||||
let info = response.storage_info;
|
||||
|
||||
let mut buf = Deserializer::new(Cursor::new(info));
|
||||
let storage_info: StorageInfo = Deserialize::deserialize(&mut buf).unwrap();
|
||||
let storage_info: madmin::StorageInfo = Deserialize::deserialize(&mut buf).unwrap();
|
||||
println!("{:?}", storage_info);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user