File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -399,13 +399,22 @@ func TestConnConcurrency(t *testing.T) {
399
399
errChan <- fmt .Errorf ("select failed: %d %w" , idx , err )
400
400
return
401
401
}
402
- require .Equal (t , idx , id )
403
- require .Equal (t , strconv .Itoa (idx ), str )
402
+ if id != idx {
403
+ errChan <- fmt .Errorf ("id mismatch: %d %d" , idx , id )
404
+ return
405
+ }
406
+ if str != strconv .Itoa (idx ) {
407
+ errChan <- fmt .Errorf ("str mismatch: %d %s" , idx , str )
408
+ return
409
+ }
404
410
expectedDuration := pgtype.Interval {
405
411
Microseconds : int64 (idx ) * time .Second .Microseconds (),
406
412
Valid : true ,
407
413
}
408
- require .Equal (t , expectedDuration , duration )
414
+ if duration != expectedDuration {
415
+ errChan <- fmt .Errorf ("duration mismatch: %d %v" , idx , duration )
416
+ return
417
+ }
409
418
410
419
errChan <- nil
411
420
}(i )
You can’t perform that action at this time.
0 commit comments