Skip to content

Commit

Permalink
Improve test output by adding an assert to show possible errors durin…
Browse files Browse the repository at this point in the history
…g filebeats' TestMergeConfigFiles unit test.
  • Loading branch information
mariomechoulam authored and ph committed May 4, 2018
1 parent 8621db3 commit fb84ad3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filebeat/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ func TestMergeConfigFiles(t *testing.T) {
assert.Equal(t, 2, len(files))

config := &Config{}
mergeConfigFiles(files, config)
err = mergeConfigFiles(files, config)
assert.NoError(t, err)

assert.Equal(t, 4, len(config.Inputs))
}
Expand Down

0 comments on commit fb84ad3

Please sign in to comment.