allow more time for streaming message

remove unused struct
This commit is contained in:
Drew Bailey
2019-11-01 14:54:25 -04:00
parent f74bd99b2a
commit 8423ccf890
2 changed files with 1 additions and 5 deletions

View File

@@ -237,10 +237,6 @@ func (a *Agent) Health() (*AgentHealthResponse, error) {
return nil, fmt.Errorf("unable to unmarshal response with status %d: %v", resp.StatusCode, err)
}
type MonitorFrame struct {
Data []byte `json:",omitempty"`
}
// 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) {

View File

@@ -82,7 +82,7 @@ TEST:
select {
case <-passed:
break TEST
case <-time.After(1 * time.Second):
case <-time.After(2 * time.Second):
require.Fail(t, "expected to see warn dropped messages")
}
}