Skip to content

Commit

Permalink
Merge pull request #74 from sashamelentyev/require
Browse files Browse the repository at this point in the history
Use require insteed of assert
  • Loading branch information
camdencheek authored Jan 17, 2023
2 parents f9df11e + 1d533b4 commit e5ed75f
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 e5ed75f

Please sign in to comment.