diff --git a/src/cmd/longevity_test/longevity.go b/src/cmd/longevity_test/longevity.go index efe3bd352..b3d6f865d 100644 --- a/src/cmd/longevity_test/longevity.go +++ b/src/cmd/longevity_test/longevity.go @@ -67,9 +67,6 @@ func deleteBackups( // pitrListBackups connects to the repository at the given point in time and // lists the backups for service. It then checks the list of backups contains // the backups in backupIDs. -// -//nolint:unused -//lint:ignore U1000 Waiting for upstream fix tracked by 4031 func pitrListBackups( ctx context.Context, service path.ServiceType, @@ -159,10 +156,16 @@ func main() { fatal(ctx, "invalid number of days provided", nil) } - _, err = deleteBackups(ctx, service, days) + beforeDel := time.Now() + + backups, err := deleteBackups(ctx, service, days) if err != nil { fatal(ctx, "deleting backups", clues.Stack(err)) } + + if err := pitrListBackups(ctx, service, beforeDel, backups); err != nil { + fatal(ctx, "listing backups from point in time", clues.Stack(err)) + } } func fatal(ctx context.Context, msg string, err error) {