From 369c00e918c0e59f3cba9982f098b5400e50454c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20M=C3=BCller?= Date: Tue, 25 Apr 2017 16:38:49 +0200 Subject: [PATCH] Use Errorf instead of Error --- structs/xmlStructs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structs/xmlStructs_test.go b/structs/xmlStructs_test.go index 80bf6fe..eedf516 100644 --- a/structs/xmlStructs_test.go +++ b/structs/xmlStructs_test.go @@ -253,13 +253,13 @@ func TestVolumeQuotaListXMLUnmarshall(t *testing.T) { } nb_limits := len(volumeQuotaXML.VolQuota.QuotaLimits) if nb_limits != nodeCount { - t.Error("Expected %v Limits and len is %v", nodeCount, nb_limits) + t.Errorf("Expected %v Limits and len is %v", nodeCount, nb_limits) } for _, limit := range volumeQuotaXML.VolQuota.QuotaLimits { if limit.Path == "/foo" { if limit.AvailSpace != 10309258240 { - t.Error( + t.Errorf( "Expected %v for available space in path %v, got %v", 1811939328, limit.Path,