diff --git a/command/agent/rpc_client_test.go b/command/agent/rpc_client_test.go index 1ced706afe..4e6f092521 100644 --- a/command/agent/rpc_client_test.go +++ b/command/agent/rpc_client_test.go @@ -237,9 +237,9 @@ OUTER1: case e := <-eventCh: if strings.Contains(e, "Accepted client") { found = true + break OUTER1 } default: - break OUTER1 } } if !found {