@@ -4,7 +4,7 @@ import { UnstructuredClient } from "../../src";
4
4
import { PartitionResponse } from "../../src/sdk/models/operations" ;
5
5
import { PartitionParameters , Strategy } from "../../src/sdk/models/shared" ;
6
6
7
- const localServer = "http://localhost:8000" ;
7
+ const localServer = "http://localhost:8000"
8
8
9
9
describe ( "SplitPdfHook integration tests check splitted file is same as not splitted" , ( ) => {
10
10
const FAKE_API_KEY = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ;
@@ -354,42 +354,3 @@ describe("SplitPdfHook integration tests page range parameter", () => {
354
354
300000
355
355
) ;
356
356
} ) ;
357
-
358
-
359
- describe ( "SplitPDF succeeds for large PDF with high concurrency" , ( ) => {
360
- const FAKE_API_KEY = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ;
361
-
362
- it . each ( [
363
- `${ localServer } /general/v0/general` ,
364
- ] ) ( "succeed" , async ( serverURL ) => {
365
- const client = new UnstructuredClient ( {
366
- serverURL : serverURL ,
367
- security : {
368
- apiKeyAuth : FAKE_API_KEY ,
369
- } ,
370
- } ) ;
371
-
372
- const file = {
373
- content : readFileSync ( "test/data/layout-parser-paper.pdf" ) ,
374
- fileName : "test/data/layout-parser-paper.pdf"
375
- } ;
376
-
377
- const requestParams : PartitionParameters = {
378
- files : file ,
379
- splitPdfPage : true ,
380
- strategy : Strategy . HiRes ,
381
- splitPdfAllowFailed : false ,
382
- splitPdfConcurrencyLevel : 15
383
- } ;
384
-
385
- const res : PartitionResponse = await client . general . partition ( {
386
- partitionParameters : {
387
- ...requestParams
388
- } ,
389
- } ) ;
390
-
391
- expect ( res . statusCode ) . toEqual ( 200 ) ;
392
- expect ( res . elements ?. length ) . toBeGreaterThan ( 0 ) ;
393
- } ,
394
- 300000 ) ;
395
- } ) ;
0 commit comments