remove redundant calls to PostMortemLogs()

pull/17935/head
Predrag Rogic 2024-01-11 21:56:42 +00:00
parent 8b0d861b69
commit c209e1b6ee
No known key found for this signature in database
GPG Key ID: F1FF5748C4855229
1 changed files with 0 additions and 4 deletions

View File

@ -191,8 +191,6 @@ func TestDownloadOnly(t *testing.T) { // nolint:gocyclo
// This is a weird place to test profile deletion, but this test is serial, and we have a profile to delete!
t.Run("DeleteAll", func(t *testing.T) {
defer PostMortemLogs(t, profile)
if !CanCleanup() {
t.Skip("skipping, as cleanup is disabled")
}
@ -204,8 +202,6 @@ func TestDownloadOnly(t *testing.T) { // nolint:gocyclo
// Delete should always succeed, even if previously partially or fully deleted.
t.Run("DeleteAlwaysSucceeds", func(t *testing.T) {
defer PostMortemLogs(t, profile)
if !CanCleanup() {
t.Skip("skipping, as cleanup is disabled")
}