Skip to content

Commit

Permalink
Use require insteed of assert
Browse files Browse the repository at this point in the history
Signed-off-by: Sasha Melentyev <[email protected]>
  • Loading branch information
sashamelentyev committed Jan 17, 2023
1 parent f9df11e commit 1d533b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iter/iter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"sync/atomic"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -38,7 +37,7 @@ func TestIterator(t *testing.T) {
// iter.Concurrency > numInput case that updates iter.Concurrency
iterator.ForEachIdx([]int{1, 2, 3}, func(i int, t *int) {})

assert.Equal(t, iterator.MaxGoroutines, 999)
require.Equal(t, iterator.MaxGoroutines, 999)
})

t.Run("allows more than defaultMaxGoroutines() concurrent tasks", func(t *testing.T) {
Expand Down

0 comments on commit 1d533b4

Please sign in to comment.