We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb3ee1 commit 33d5d12Copy full SHA for 33d5d12
tempfile/directory_test.go
@@ -75,7 +75,12 @@ func TestDirectoryReferenceCountingCleanup(t *testing.T) {
75
if err != nil {
76
t.Fatalf("Failed to create test base dir: %v", err)
77
}
78
- defer os.RemoveAll(baseDir)
+ defer func() {
79
+ err := os.RemoveAll(baseDir)
80
+ if err != nil {
81
+ t.Fatal(err)
82
+ }
83
+ }()
84
85
// Create a subdirectory that matches our process-specific pattern
86
// This simulates what would happen in the fallback case
0 commit comments