Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Use Errorf instead of Error
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-hugo committed Apr 25, 2017
1 parent 573954c commit 369c00e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions structs/xmlStructs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 369c00e

Please sign in to comment.