Skip to content

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

fix: add return after t.Fatal to satisfy staticcheck SA5011

Yash Jadhav40756d9af4a7
diff --git a/internal/bridge/lock_test.go b/internal/bridge/lock_test.go
index 9af7fb84..d386ddac 100644
--- a/internal/bridge/lock_test.go
+++ b/internal/bridge/lock_test.go
@@ -52,6 +52,7 @@ func TestLockManagerGet(t *testing.T) {
info := m.Get(tabID)
if info == nil {
t.Fatal("expected info")
+ return
}
if info.Owner != owner {
t.Errorf("expected owner %s, got %s", owner, info.Owner)
diff --git a/internal/scheduler/queue_test.go b/internal/scheduler/queue_test.go
index 3ebe3135..97be3638 100644
--- a/internal/scheduler/queue_test.go
+++ b/internal/scheduler/queue_test.go
@@ -22,6 +22,7 @@ func TestQueueEnqueueDequeue(t *testing.T) {
got := q.Dequeue(10, 20)
if got == nil {
t.Fatal("expected a task")
+ return
}
if got.ID != "t2" {
t.Errorf("expected t2 (priority 1), got %s (priority %d)", got.ID, got.Priority)
@@ -85,12 +86,14 @@ func TestQueueFairness(t *testing.T) {
got1 := q.Dequeue(10, 20)
if got1 == nil {
t.Fatal("expected a task")
+ return
}
// Now one agent has 1 inflight. The agent with 0 should be preferred.
got2 := q.Dequeue(10, 20)
if got2 == nil {
t.Fatal("expected a task")
+ return
}
// The two dequeued tasks should be from different agents (fairness).