@@ -359,9 +359,10 @@ mod tests {
359359 check_roundtrip ( & in_progress_export) ;
360360
361361 // Completed
362- let export = in_progress_export
363- . clone ( )
364- . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?) ?;
362+ let export =
363+ in_progress_export
364+ . clone ( )
365+ . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?, 5 ) ?;
365366 check_roundtrip ( & export) ;
366367
367368 // Failed
@@ -479,7 +480,7 @@ mod tests {
479480 ts_u64 + 1000 ,
480481 )
481482 . in_progress ( ts) ?
482- . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?) ?;
483+ . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?, 5 ) ?;
483484 exports_model. insert_export ( export) . await ?;
484485 let backups = exports_model. list_unexpired_cloud_backups ( ) . await ?;
485486 assert ! ( backups. is_empty( ) ) ;
@@ -494,7 +495,7 @@ mod tests {
494495 ts_u64 - 1000 ,
495496 )
496497 . in_progress ( ts) ?
497- . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?) ?;
498+ . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?, 5 ) ?;
498499 exports_model. insert_export ( export) . await ?;
499500 let backups = exports_model. list_unexpired_cloud_backups ( ) . await ?;
500501 assert ! ( backups. is_empty( ) ) ;
@@ -509,7 +510,7 @@ mod tests {
509510 ts_u64 + 1000 ,
510511 )
511512 . in_progress ( ts) ?
512- . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?) ?;
513+ . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?, 5 ) ?;
513514 exports_model. insert_export ( export) . await ?;
514515 let backups = exports_model. list_unexpired_cloud_backups ( ) . await ?;
515516 assert_eq ! ( backups. len( ) , 1 ) ;
@@ -535,7 +536,7 @@ mod tests {
535536 ts_u64 + 1000 ,
536537 )
537538 . in_progress ( ts) ?
538- . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?) ?;
539+ . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?, 5 ) ?;
539540 let id = exports_model. insert_export ( export) . await ?;
540541
541542 let new_expiration = ts_u64 + 2000 ;
@@ -572,7 +573,7 @@ mod tests {
572573 ts_u64,
573574 )
574575 . in_progress ( ts) ?
575- . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?) ?;
576+ . completed ( ts, ts, ObjectKey :: try_from ( "asdf" ) ?, 5 ) ?;
576577 exports_model. insert_export ( export) . await ?;
577578 assert_eq ! ( exports_model. list( ) . await ?. len( ) , 1 ) ;
578579 let toremove = exports_model
@@ -642,6 +643,7 @@ mod tests {
642643 ts,
643644 ts,
644645 ObjectKey :: try_from ( "asdf" ) ?,
646+ 5 ,
645647 ) ?,
646648 initial_export. clone ( ) . in_progress ( ts) ?. failed ( ts, ts) ?,
647649 initial_export. clone ( ) . canceled ( ts) ?,
0 commit comments