@@ -138,19 +138,19 @@ func TestParallelWithTimedOutContext(t *testing.T) {
138138 a .EqualNow (finishedNum , 2 )
139139}
140140
141- func TestParallelComplete (t * testing.T ) {
141+ func TestParallelCompleted (t * testing.T ) {
142142 a := assert .New (t )
143143
144- errs , hasError := ParallelComplete (0 )
144+ errs , hasError := ParallelCompleted (0 )
145145 a .NotTrueNow (hasError )
146146 a .EqualNow (errs , []error {})
147147
148148 a .PanicNow (func () {
149- ParallelComplete (- 1 )
149+ ParallelCompleted (- 1 )
150150 })
151151}
152152
153- func TestParallelCompleteWithoutConcurrencyLimit (t * testing.T ) {
153+ func TestParallelCompletedWithoutConcurrencyLimit (t * testing.T ) {
154154 a := assert .New (t )
155155
156156 funcs := make ([]AsyncFn , 0 , 5 )
@@ -162,14 +162,14 @@ func TestParallelCompleteWithoutConcurrencyLimit(t *testing.T) {
162162 }
163163
164164 start := time .Now ()
165- errs , hasError := ParallelComplete (0 , funcs ... )
165+ errs , hasError := ParallelCompleted (0 , funcs ... )
166166 dur := time .Since (start )
167167 a .NotTrueNow (hasError )
168168 a .EqualNow (errs , []error {nil , nil , nil , nil , nil })
169169 a .TrueNow (dur - 100 * time .Millisecond < 30 * time .Millisecond ) // allow 30ms deviation
170170}
171171
172- func TestParallelCompleteWithConcurrencyLimit (t * testing.T ) {
172+ func TestParallelCompletedWithConcurrencyLimit (t * testing.T ) {
173173 a := assert .New (t )
174174
175175 funcs := make ([]AsyncFn , 0 , 5 )
@@ -181,14 +181,14 @@ func TestParallelCompleteWithConcurrencyLimit(t *testing.T) {
181181 }
182182
183183 start := time .Now ()
184- errs , hasError := ParallelComplete (2 , funcs ... )
184+ errs , hasError := ParallelCompleted (2 , funcs ... )
185185 dur := time .Since (start )
186186 a .NotTrueNow (hasError )
187187 a .EqualNow (errs , []error {nil , nil , nil , nil , nil })
188188 a .TrueNow (dur - 300 * time .Millisecond < 30 * time .Millisecond ) // allow 30ms deviation
189189}
190190
191- func TestParallelCompleteWithFailedTask (t * testing.T ) {
191+ func TestParallelCompletedWithFailedTask (t * testing.T ) {
192192 a := assert .New (t )
193193
194194 expectedErr := errors .New ("expected error" )
@@ -207,12 +207,12 @@ func TestParallelCompleteWithFailedTask(t *testing.T) {
207207 })
208208 }
209209
210- errs , hasError := ParallelComplete (0 , funcs ... )
210+ errs , hasError := ParallelCompleted (0 , funcs ... )
211211 a .TrueNow (hasError )
212212 a .EqualNow (errs , []error {nil , nil , expectedErr , nil , nil })
213213}
214214
215- func TestParallelCompleteWithContext (t * testing.T ) {
215+ func TestParallelCompletedWithContext (t * testing.T ) {
216216 a := assert .New (t )
217217
218218 funcs := make ([]AsyncFn , 0 , 5 )
@@ -226,7 +226,7 @@ func TestParallelCompleteWithContext(t *testing.T) {
226226 })
227227 }
228228
229- errs , hasError := ParallelCompleteWithContext (context .Background (), 2 , funcs ... )
229+ errs , hasError := ParallelCompletedWithContext (context .Background (), 2 , funcs ... )
230230 a .NotTrueNow (hasError )
231231 a .EqualNow (errs , []error {nil , nil , nil , nil , nil })
232232
@@ -239,7 +239,7 @@ func TestParallelCompleteWithContext(t *testing.T) {
239239 a .EqualNow (finishedNum , 5 )
240240}
241241
242- func TestParallelCompleteWithTimedOutContext (t * testing.T ) {
242+ func TestParallelCompletedWithTimedOutContext (t * testing.T ) {
243243 a := assert .New (t )
244244
245245 timeoutErr := errors .New ("timed out" )
@@ -264,7 +264,7 @@ func TestParallelCompleteWithTimedOutContext(t *testing.T) {
264264 ctx , canFunc := context .WithTimeout (context .Background (), 150 * time .Millisecond )
265265 defer canFunc ()
266266
267- errs , hasError := ParallelCompleteWithContext (ctx , 2 , funcs ... )
267+ errs , hasError := ParallelCompletedWithContext (ctx , 2 , funcs ... )
268268 a .TrueNow (hasError )
269269
270270 numErrors := 0
0 commit comments