Skip to content

Commit

Permalink
fix(tests): use t.Errorf() in types_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Dara Hayes committed Feb 27, 2018
1 parent 4b15657 commit 247d31b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/mobile/types_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package mobile

import (
"fmt"
"testing"
)

Expand Down Expand Up @@ -49,11 +48,11 @@ func TestMetricValidate(t *testing.T) {
valid, reason := tc.Metric.Validate()

if valid != tc.Valid {
fmt.Errorf("case failed: %s. Expected: %v, got %v", tc.Name, tc.Valid, valid)
t.Errorf("case failed: %s. Expected: %v, got %v", tc.Name, tc.Valid, valid)
}

if reason != tc.ExpectedReason {
fmt.Errorf("case failed: %s. Expected: %v, got %v", tc.Name, tc.ExpectedReason, reason)
t.Errorf("case failed: %s. Expected: %v, got %v", tc.Name, tc.ExpectedReason, reason)
}
}
}

0 comments on commit 247d31b

Please sign in to comment.