mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 17:28:12 +00:00
fix
This commit is contained in:
@@ -6019,11 +6019,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_join_errs() {
|
fn test_join_errs() {
|
||||||
// Test joining error messages
|
// Test joining error messages
|
||||||
let errs = vec![
|
let errs = vec![None, Some(Error::from_string("error1")), Some(Error::from_string("error2"))];
|
||||||
None,
|
|
||||||
Some(Error::from_string("error1")),
|
|
||||||
Some(Error::from_string("error2")),
|
|
||||||
];
|
|
||||||
let joined = join_errs(&errs);
|
let joined = join_errs(&errs);
|
||||||
assert!(joined.contains("<nil>"));
|
assert!(joined.contains("<nil>"));
|
||||||
assert!(joined.contains("error1"));
|
assert!(joined.contains("error1"));
|
||||||
|
|||||||
Reference in New Issue
Block a user