fix fmt string error in test, found by linter

This commit is contained in:
Matthias Radestock
2017-06-21 21:56:34 +01:00
parent c6b114664f
commit a7cfd043fc

View File

@@ -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)
}
}
}