mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 16:45:15 +03:00
refactor: staticcheck
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user