Skip to content

Commit

Permalink
Add filesystem name to test error message (#4272)
Browse files Browse the repository at this point in the history
Errors that are logged by the system/filesystem test case don’t have enough context to debug them. This adds the filesystem that caused the error to the message.
  • Loading branch information
andrewkroh authored and ruflin committed May 10, 2017
1 parent 64556b5 commit 9c9b4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/module/system/filesystem/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestFileSystemList(t *testing.T) {
continue
}

if assert.NoError(t, err, "%v", err) {
if assert.NoError(t, err, "filesystem=%v: %v", fs, err) {
assert.True(t, (stat.Total >= 0))
assert.True(t, (stat.Free >= 0))
assert.True(t, (stat.Avail >= 0))
Expand Down

0 comments on commit 9c9b4ac

Please sign in to comment.