refactor: staticcheck

This commit is contained in:
2026-05-25 16:21:08 +03:00
parent 43c43673a9
commit 5a42b918e0
@@ -158,7 +158,7 @@ func TestAgentConnection_HeartbeatTimeout(t *testing.T) {
timeout := time.After(2 * time.Second)
gotListen := false
gotExec := false
for !(gotListen && gotExec) {
for !gotListen && !gotExec {
select {
case err := <-listenDone:
assert.ErrorIs(t, err, context.Canceled)