We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git hash-object
1 parent 46bc15c commit e1e4b3fCopy full SHA for e1e4b3f
1 file changed
internal/testutils/repoutils.go
@@ -12,6 +12,7 @@ import (
12
"testing"
13
"time"
14
15
+ "github.com/stretchr/testify/assert"
16
"github.com/stretchr/testify/require"
17
18
"github.com/github/git-sizer/git"
@@ -182,13 +183,13 @@ func (repo *TestRepo) CreateObject(
182
183
184
err = writer(in)
185
err2 := in.Close()
- if err != nil {
186
- cmd.Wait()
187
- require.NoError(t, err)
+ if !assert.NoError(t, err) {
+ _ = cmd.Wait()
188
+ t.FailNow()
189
}
- if err2 != nil {
190
191
- require.NoError(t, err2)
+ if !assert.NoError(t, err2) {
192
193
194
195
output, err := ioutil.ReadAll(out)
0 commit comments