Skip to content

Commit

Permalink
Update making Host mandatory.
Browse files Browse the repository at this point in the history
  • Loading branch information
ph committed Mar 27, 2018
1 parent d9a4ab5 commit 98d521e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions filebeat/input/tcp/harvester_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,12 @@ func TestReceiveNewEventsConcurrently(t *testing.T) {
defer close(ch)
to := newTestingOutlet(ch)
forwarder := harvester.NewForwarder(to)
cfg := common.NewConfig()
cfg, err := common.NewConfigFrom(map[string]interface{}{"host": "localhost:9000"})
if !assert.NoError(t, err) {
return
}
config := defaultConfig
err := cfg.Unpack(&config)
err = cfg.Unpack(&config)
if !assert.NoError(t, err) {
return
}
Expand Down

0 comments on commit 98d521e

Please sign in to comment.