1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 08:16:36 +00:00

repository: Fix panic in benchmarkLoadIndex

This commit is contained in:
Michael Eischer 2022-09-11 13:51:08 +02:00
parent 13c32b0fbe
commit ffca602315

View file

@ -346,6 +346,7 @@ func benchmarkLoadIndex(b *testing.B, version uint) {
},
})
}
idx.Finalize()
id, err := index.SaveIndex(context.TODO(), repo, idx)
rtest.OK(b, err)