High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: resolve linting issues in integration tests
Mario4caad058590b
diff --git a/tests/integration/main_test.go b/tests/integration/main_test.goindex 245ca34e..c3a38296 100644--- a/tests/integration/main_test.go+++ b/tests/integration/main_test.go@@ -236,28 +236,4 @@ func navigate(t *testing.T, url string) {}}-// extractRefs extracts ref identifiers from a snapshot JSON-func extractRefs(snapshot map[string]any) []string {- refs := []string{}- walkSnapshot(snapshot, func(m map[string]any) {- if ref, ok := m["ref"].(string); ok && ref != "" {- refs = append(refs, ref)- }- })- return refs-}-// walkSnapshot recursively walks through snapshot structure to find all objects-func walkSnapshot(v any, fn func(map[string]any)) {- switch val := v.(type) {- case map[string]any:- fn(val)- for _, child := range val {- walkSnapshot(child, fn)- }- case []any:- for _, item := range val {- walkSnapshot(item, fn)- }- }-}diff --git a/tests/integration/snapshot_test.go b/tests/integration/snapshot_test.goindex ff8914c4..eb983256 100644--- a/tests/integration/snapshot_test.go+++ b/tests/integration/snapshot_test.go@@ -175,7 +175,7 @@ func TestSnapshot_RefStability(t *testing.T) {initialLen := len(body)// Perform an action (press a key) to trigger potential ref changes- code, _ = httpPost(t, "/action", map[string]string{+ _, _ = httpPost(t, "/action", map[string]string{"kind": "press","key": "Escape",})diff --git a/tests/integration/tabs_test.go b/tests/integration/tabs_test.goindex bd027416..75ded815 100644--- a/tests/integration/tabs_test.go+++ b/tests/integration/tabs_test.go@@ -110,10 +110,7 @@ func TestTabs_MaxTabs(t *testing.T) {}}- // Verify we created at least one tab or hit an error- if createdCount == 0 && initialTabs > 0 {- // Acceptable: either we created tabs or hit limit immediately- }+ // Acceptable: either we created tabs or hit limit immediately// Get final tab count_, finalBody := httpGet(t, "/tabs")