fix: resolve golangci-lint dogsled and gci warnings
- Fix dogsled: reduce blank identifiers in newTestAgentLoop calls - Fix gci: auto-fixed import ordering in loop_test.go
This commit is contained in:
parent
5efeb19c85
commit
67330d5749
1 changed files with 8 additions and 4 deletions
|
|
@ -2134,7 +2134,8 @@ func TestFilterClientWebSearch_EmptyInput(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestProcessHeartbeat_SkipsWhenAgentBusy(t *testing.T) {
|
func TestProcessHeartbeat_SkipsWhenAgentBusy(t *testing.T) {
|
||||||
al, _, _, _, cleanup := newTestAgentLoop(t)
|
al, cfg, _, _, cleanup := newTestAgentLoop(t)
|
||||||
|
_ = cfg
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
// Simulate an active turn by registering a turnState via the helper
|
// Simulate an active turn by registering a turnState via the helper
|
||||||
|
|
@ -2157,7 +2158,8 @@ func TestProcessHeartbeat_SkipsWhenAgentBusy(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestProcessHeartbeat_RunsWhenIdle(t *testing.T) {
|
func TestProcessHeartbeat_RunsWhenIdle(t *testing.T) {
|
||||||
al, _, _, _, cleanup := newTestAgentLoop(t)
|
al, cfg, _, _, cleanup := newTestAgentLoop(t)
|
||||||
|
_ = cfg
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
// Verify no active turns exist
|
// Verify no active turns exist
|
||||||
|
|
@ -2180,7 +2182,8 @@ func TestProcessHeartbeat_RunsWhenIdle(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestProcessHeartbeat_SkipsForAnyActiveSession(t *testing.T) {
|
func TestProcessHeartbeat_SkipsForAnyActiveSession(t *testing.T) {
|
||||||
al, _, _, _, cleanup := newTestAgentLoop(t)
|
al, cfg, _, _, cleanup := newTestAgentLoop(t)
|
||||||
|
_ = cfg
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
// Register multiple active turns to cover the sync.Map iteration
|
// Register multiple active turns to cover the sync.Map iteration
|
||||||
|
|
@ -2205,7 +2208,8 @@ func TestProcessHeartbeat_SkipsForAnyActiveSession(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestProcessHeartbeat_ProceedsAfterTurnClears(t *testing.T) {
|
func TestProcessHeartbeat_ProceedsAfterTurnClears(t *testing.T) {
|
||||||
al, _, _, _, cleanup := newTestAgentLoop(t)
|
al, cfg, _, _, cleanup := newTestAgentLoop(t)
|
||||||
|
_ = cfg
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
// Simulate a turn that starts and then completes
|
// Simulate a turn that starts and then completes
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue