Skip to content

Commit f03e7ff

Browse files
committed
TestExec(): use assert.NoErrorf()
1 parent b166327 commit f03e7ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

git_sizer_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ import (
2121
func TestExec(t *testing.T) {
2222
cmd := exec.Command("bin/git-sizer")
2323
output, err := cmd.CombinedOutput()
24-
if err != nil {
25-
t.Errorf("command failed (%s); output: %#v", err, string(output))
26-
}
24+
assert.NoErrorf(t, err, "command failed; output: %#v", string(output))
2725
}
2826

2927
func gitCommand(t *testing.T, repo *git.Repository, args ...string) *exec.Cmd {

0 commit comments

Comments
 (0)