Skip to content

Commit 0d38051

Browse files
author
Chris McDonnell
committed
use assert.NoError
1 parent 8689f3a commit 0d38051

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/config/app_config_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,10 +779,9 @@ func TestAllBranchesLogCmdMigrations(t *testing.T) {
779779
for _, s := range scenarios {
780780
t.Run(s.name, func(t *testing.T) {
781781
actual, err := computeMigratedConfig("path doesn't matter", []byte(s.input))
782-
if err != nil {
783-
t.Error(err)
782+
if assert.NoError(t, err) {
783+
assert.Equal(t, s.expected, string(actual))
784784
}
785-
assert.Equal(t, s.expected, string(actual))
786785
})
787786
}
788787
}

0 commit comments

Comments
 (0)