Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: suppress errcheck on deferred os.RemoveAll in tests

Bosch478197554dd0
diff --git a/internal/config/config_test.go b/internal/config/config_test.go
index 4b3244ef..64823618 100644
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -651,7 +651,7 @@ func TestFileExists(t *testing.T) {
if err != nil {
t.Fatalf("Failed to create temp dir: %v", err)
}
- defer os.RemoveAll(tmpDir)
+ defer func() { _ = os.RemoveAll(tmpDir) }()
// Test non-existent file
if fileExists(filepath.Join(tmpDir, "nonexistent.json")) {
@@ -695,7 +695,7 @@ func TestUserConfigDirLegacyConfigFilePriority(t *testing.T) {
if err != nil {
t.Fatalf("Failed to create temp home: %v", err)
}
- defer os.RemoveAll(tmpHome)
+ defer func() { _ = os.RemoveAll(tmpHome) }()
// Setup directory structure that mimics the bug scenario:
// ~/.pinchtab/config.json exists