Skip to content

Commit 84e3f4c

Browse files
committed
try undo tests
1 parent 16d75a1 commit 84e3f4c

File tree

1 file changed

+1
-40
lines changed

1 file changed

+1
-40
lines changed

test/integration/SplitPdfHook.test.ts

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { UnstructuredClient } from "../../src";
44
import { PartitionResponse } from "../../src/sdk/models/operations";
55
import { PartitionParameters, Strategy } from "../../src/sdk/models/shared";
66

7-
const localServer = "http://localhost:8000";
7+
const localServer = "http://localhost:8000"
88

99
describe("SplitPdfHook integration tests check splitted file is same as not splitted", () => {
1010
const FAKE_API_KEY = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
@@ -354,42 +354,3 @@ describe("SplitPdfHook integration tests page range parameter", () => {
354354
300000
355355
);
356356
});
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

Comments
 (0)