From a7cfd043fc663d746411ccb08690ef35d4dba23f Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Wed, 21 Jun 2017 21:56:34 +0100 Subject: [PATCH] fix fmt string error in test, found by linter --- probe/host/reporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/host/reporter_test.go b/probe/host/reporter_test.go index 83296fe424..791ded5817 100644 --- a/probe/host/reporter_test.go +++ b/probe/host/reporter_test.go @@ -96,7 +96,7 @@ func TestReporter(t *testing.T) { } else if sample, ok := metric.LastSample(); !ok { t.Errorf("Expected %s metric to have a sample, but there were none", key) } else if sample.Value != wantSample.Value { - t.Errorf("Expected %s metric sample %f, got %f", key, wantSample, sample.Value) + t.Errorf("Expected %s metric sample %f, got %f", key, wantSample.Value, sample.Value) } } }