From ea3f02e6b1f110fff0f78b3245ebdff9f9630448 Mon Sep 17 00:00:00 2001 From: Christian Loew Date: Sat, 15 Oct 2016 19:54:53 +0200 Subject: [PATCH] fixed tests --- plugins/inputs/ping/ping_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/inputs/ping/ping_test.go b/plugins/inputs/ping/ping_test.go index b5d0d16e7..1ad195360 100644 --- a/plugins/inputs/ping/ping_test.go +++ b/plugins/inputs/ping/ping_test.go @@ -48,13 +48,13 @@ ping: -i interval too short: Operation not permitted // Test that ping command output is processed properly func TestProcessPingOutput(t *testing.T) { - trans, rec, avg, err := processPingOutput(bsdPingOutput) + trans, rec, avg, ipversion, err := processPingOutput(bsdPingOutput) assert.NoError(t, err) assert.Equal(t, 5, trans, "5 packets were transmitted") assert.Equal(t, 5, rec, "5 packets were transmitted") assert.InDelta(t, 20.224, avg, 0.001) - trans, rec, avg, err = processPingOutput(linuxPingOutput) + trans, rec, avg, ipversion, err = processPingOutput(linuxPingOutput) assert.NoError(t, err) assert.Equal(t, 5, trans, "5 packets were transmitted") assert.Equal(t, 5, rec, "5 packets were transmitted") @@ -64,7 +64,7 @@ func TestProcessPingOutput(t *testing.T) { // Test that processPingOutput returns an error when 'ping' fails to run, such // as when an invalid argument is provided func TestErrorProcessPingOutput(t *testing.T) { - _, _, _, err := processPingOutput(fatalPingOutput) + _, _, _, _, err := processPingOutput(fatalPingOutput) assert.Error(t, err, "Error was expected from processPingOutput") }