clean up temp dirs

This commit is contained in:
Haris Khan
2024-11-15 22:47:36 -05:00
parent 1292098cf0
commit 767b91df49

View File

@ -195,4 +195,18 @@ func Test10K(t *testing.T) {
}
}
}
// Cleanup both directories
if err := cleanupTempDir(tempDir); err != nil {
log.WithError(err).Error("Failed to cleanup temp directory")
t.Errorf("Failed to cleanup temp directory: %v", err)
} else {
log.Debug("Successfully cleaned up temp directory")
}
if err := cleanupTempDir(targetDir); err != nil {
log.WithError(err).Error("Failed to cleanup target directory")
t.Errorf("Failed to cleanup target directory: %v", err)
} else {
log.Debug("Successfully cleaned up target directory")
}
}