aboutsummaryrefslogtreecommitdiff
path: root/src/garage/tests/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/garage/tests/list.rs')
-rw-r--r--src/garage/tests/list.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/tests/list.rs b/src/garage/tests/list.rs
index 6e092a3f..bb03f250 100644
--- a/src/garage/tests/list.rs
+++ b/src/garage/tests/list.rs
@@ -527,8 +527,8 @@ async fn test_listmultipart() {
upnext = r.next_upload_id_marker;
loopcnt += 1;
- upcnt += r.uploads.unwrap_or(vec![]).len();
- pfxcnt += r.common_prefixes.unwrap_or(vec![]).len();
+ upcnt += r.uploads.unwrap_or_default().len();
+ pfxcnt += r.common_prefixes.unwrap_or_default().len();
if next.is_none() {
break;