Skip to content

Commit

Permalink
Remove cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matoval committed Nov 13, 2024
1 parent a053fc0 commit 23cbb92
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pkg/workceptor/workceptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"crypto/tls"
"errors"
"fmt"
"os"
"testing"

"github.com/ansible/receptor/pkg/logger"
Expand Down Expand Up @@ -382,14 +381,14 @@ func TestAllocateRemoteUnit(t *testing.T) {
}
}
})
t.Cleanup(func() {
if tc.workUnitID != "" {
err := os.RemoveAll(fmt.Sprintf("/tmp/test/%s", tc.workUnitID))
if err != nil {
t.Errorf("removal of test directory /tmp/test/%s failed", tc.workUnitID)
}
}
})
// t.Cleanup(func() {
// if tc.workUnitID != "" {
// err := os.RemoveAll(fmt.Sprintf("/tmp/test/%s", tc.workUnitID))
// if err != nil {
// t.Errorf("removal of test directory /tmp/test/%s failed", tc.workUnitID)
// }
// }
// })
}
}

Expand Down

0 comments on commit 23cbb92

Please sign in to comment.