mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
monitor command takes no args
rm extra new line fix lint errors return after close fix, simplify test
This commit is contained in:
@@ -244,7 +244,6 @@ type MonitorFrame struct {
|
||||
// Monitor returns a channel which will receive streaming logs from the agent
|
||||
// Providing a non-nil stopCh can be used to close the connection and stop log streaming
|
||||
func (a *Agent) Monitor(stopCh <-chan struct{}, q *QueryOptions) (<-chan *StreamFrame, <-chan error) {
|
||||
|
||||
errCh := make(chan error, 1)
|
||||
r, err := a.client.newRequest("GET", "/v1/agent/monitor")
|
||||
if err != nil {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"sort"
|
||||
@@ -320,7 +319,6 @@ func TestAgent_MonitorWithNode(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
// Wait for a log message
|
||||
var result bytes.Buffer
|
||||
OUTER:
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user