diff --git a/packages/hash-stream-node/src/fsCreateReadStream.spec.ts b/packages/hash-stream-node/src/fsCreateReadStream.spec.ts index 5a7e21a6b4b9..83f2f4b35a65 100644 --- a/packages/hash-stream-node/src/fsCreateReadStream.spec.ts +++ b/packages/hash-stream-node/src/fsCreateReadStream.spec.ts @@ -7,7 +7,7 @@ jest.setTimeout(30000); describe(fsCreateReadStream.name, () => { const mockFileContents = fs.readFileSync(__filename, "utf8"); - it("uses file descriptor if defined", (done) => { + it.skip("uses file descriptor if defined", (done) => { fs.promises.open(__filename, "r").then((fd) => { if ((fd as any).createReadStream) { const readStream = (fd as any).createReadStream(); diff --git a/packages/hash-stream-node/src/fsCreateReadStream.ts b/packages/hash-stream-node/src/fsCreateReadStream.ts index 837f51b5cf1d..f5ec73bdbee6 100644 --- a/packages/hash-stream-node/src/fsCreateReadStream.ts +++ b/packages/hash-stream-node/src/fsCreateReadStream.ts @@ -2,7 +2,8 @@ import { createReadStream, ReadStream } from "fs"; export const fsCreateReadStream = (readStream: ReadStream) => createReadStream(readStream.path, { - fd: (readStream as any).fd, + // ToDo: Removed to fix https://github.com/aws/aws-sdk-js-v3/issues/3368 + // fd: (readStream as any).fd, start: (readStream as any).start, end: (readStream as any).end, });