mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 18:46:17 +00:00
fix: correct test_read_xl_meta_no_data test data format
This commit is contained in:
@@ -2290,14 +2290,12 @@ async fn test_read_xl_meta_no_data() {
|
|||||||
fm.add_version(fi).unwrap();
|
fm.add_version(fi).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut buff = fm.marshal_msg().unwrap();
|
// Use marshal_msg to create properly formatted data with XL headers
|
||||||
|
let buff = fm.marshal_msg().unwrap();
|
||||||
buff.resize(buff.len() + 100, 0);
|
|
||||||
|
|
||||||
let filepath = "./test_xl.meta";
|
let filepath = "./test_xl.meta";
|
||||||
|
|
||||||
let mut file = File::create(filepath).await.unwrap();
|
let mut file = File::create(filepath).await.unwrap();
|
||||||
// 写入字符串
|
|
||||||
file.write_all(&buff).await.unwrap();
|
file.write_all(&buff).await.unwrap();
|
||||||
|
|
||||||
let mut f = File::open(filepath).await.unwrap();
|
let mut f = File::open(filepath).await.unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user