mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 15:35:17 +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)
|
timeout := time.After(2 * time.Second)
|
||||||
gotListen := false
|
gotListen := false
|
||||||
gotExec := false
|
gotExec := false
|
||||||
for !(gotListen && gotExec) {
|
for !gotListen && !gotExec {
|
||||||
select {
|
select {
|
||||||
case err := <-listenDone:
|
case err := <-listenDone:
|
||||||
assert.ErrorIs(t, err, context.Canceled)
|
assert.ErrorIs(t, err, context.Canceled)
|
||||||
|
|||||||
Reference in New Issue
Block a user