Skip to content

Commit e5ed75f

Browse files
authored
Merge pull request #74 from sashamelentyev/require
Use require insteed of assert
2 parents f9df11e + 1d533b4 commit e5ed75f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

iter/iter_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"sync/atomic"
77
"testing"
88

9-
"github.com/stretchr/testify/assert"
109
"github.com/stretchr/testify/require"
1110
)
1211

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

41-
assert.Equal(t, iterator.MaxGoroutines, 999)
40+
require.Equal(t, iterator.MaxGoroutines, 999)
4241
})
4342

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

0 commit comments

Comments
 (0)