From ee0b3cea83bb58f96a2ccbe7bf1b200099a6206d Mon Sep 17 00:00:00 2001 From: Martin Scholz Date: Wed, 12 Jul 2017 13:45:33 +0200 Subject: [PATCH] Fix test --- .../windows/perfmon/pdh_integration_windows_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/metricbeat/module/windows/perfmon/pdh_integration_windows_test.go b/metricbeat/module/windows/perfmon/pdh_integration_windows_test.go index 476b9ccd70c5..621cdc2d838e 100644 --- a/metricbeat/module/windows/perfmon/pdh_integration_windows_test.go +++ b/metricbeat/module/windows/perfmon/pdh_integration_windows_test.go @@ -57,7 +57,7 @@ func TestQuery(t *testing.T) { } defer q.Close() - err = q.AddCounter(processorTimeCounter, FloatFlormat) + err = q.AddCounter(processorTimeCounter, FloatFlormat, nil) if err != nil { t.Fatal(err) } @@ -145,7 +145,7 @@ func TestLongOutputFormat(t *testing.T) { } defer query.Close() - err = query.AddCounter(processorTimeCounter, LongFormat) + err = query.AddCounter(processorTimeCounter, LongFormat, nil) if err != nil && err != PDH_NO_MORE_DATA { t.Fatal(err) } @@ -179,7 +179,7 @@ func TestFloatOutputFormat(t *testing.T) { } defer query.Close() - err = query.AddCounter(processorTimeCounter, FloatFlormat) + err = query.AddCounter(processorTimeCounter, FloatFlormat, nil) if err != nil && err != PDH_NO_MORE_DATA { t.Fatal(err) } @@ -213,7 +213,7 @@ func TestRawValues(t *testing.T) { } defer query.Close() - err = query.AddCounter(processorTimeCounter, FloatFlormat) + err = query.AddCounter(processorTimeCounter, FloatFlormat, nil) if err != nil && err != PDH_NO_MORE_DATA { t.Fatal(err) }