@@ -108,6 +108,7 @@ pub async fn do_test_gc(
108108
109109 let first_snap_id = ds. commit ( "first" , None ) . await ?;
110110 assert_eq ! ( storage. list_chunks( & storage_settings) . await ?. count( ) . await , 1100 ) ;
111+ assert_eq ! ( storage. list_manifests( & storage_settings) . await ?. count( ) . await , 110 ) ;
111112
112113 let mut ds = repo. writable_session ( "main" ) . await ?;
113114
@@ -120,6 +121,7 @@ pub async fn do_test_gc(
120121 }
121122 let second_snap_id = ds. commit ( "second" , None ) . await ?;
122123 assert_eq ! ( storage. list_chunks( & storage_settings) . await ?. count( ) . await , 1110 ) ;
124+ assert_eq ! ( storage. list_manifests( & storage_settings) . await ?. count( ) . await , 111 ) ;
123125
124126 // verify doing gc without dangling objects doesn't change the repo
125127 let now = Utc :: now ( ) ;
@@ -155,6 +157,7 @@ pub async fn do_test_gc(
155157
156158 // we still have all the chunks
157159 assert_eq ! ( storage. list_chunks( & storage_settings) . await ?. count( ) . await , 1110 ) ;
160+ assert_eq ! ( storage. list_manifests( & storage_settings) . await ?. count( ) . await , 111 ) ;
158161
159162 let summary = garbage_collect (
160163 storage. as_ref ( ) ,
@@ -164,7 +167,7 @@ pub async fn do_test_gc(
164167 )
165168 . await ?;
166169 assert_eq ! ( summary. chunks_deleted, 10 ) ;
167- assert_eq ! ( summary. manifests_deleted, 110 ) ;
170+ assert_eq ! ( summary. manifests_deleted, 1 ) ;
168171 assert_eq ! ( summary. snapshots_deleted, 1 ) ;
169172 assert ! ( summary. bytes_deleted > summary. chunks_deleted) ;
170173
0 commit comments