Skip to content

Commit

Permalink
fix: use require for non nil
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Aug 2, 2024
1 parent 681d134 commit 47e3a98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion async/await_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/zeiss/pkg/async"
)

Expand All @@ -28,7 +29,7 @@ func BenchmarkAll(b *testing.B) {
v, err := future.Await()

assert.NotNil(b, v)
assert.NoError(b, err)
require.NoError(b, err)
assert.Equal(b, []string{"hello", "world", "world"}, v)
}
})
Expand Down

0 comments on commit 47e3a98

Please sign in to comment.