From 1d533b4596da248eba16fba8ee30b3407018f6b9 Mon Sep 17 00:00:00 2001 From: Sasha Melentyev Date: Tue, 17 Jan 2023 21:29:39 +0300 Subject: [PATCH] Use require insteed of assert Signed-off-by: Sasha Melentyev --- iter/iter_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iter/iter_test.go b/iter/iter_test.go index 6309d98..d65af2b 100644 --- a/iter/iter_test.go +++ b/iter/iter_test.go @@ -6,7 +6,6 @@ import ( "sync/atomic" "testing" - "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -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) {