diff --git a/bench_test.go b/bench_test.go index 73e1b258..dd391c71 100644 --- a/bench_test.go +++ b/bench_test.go @@ -484,7 +484,7 @@ func multiInsert(conn *pgx.Conn, tableName string, columnNames []string, rowSrc } if err := tx.Commit(context.Background()); err != nil { - return 0, nil + return 0, err } return rowCount, nil