From f9bfa62e9de45334ac4cca19923599a5685b3c59 Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Fri, 24 May 2024 11:49:24 -0700 Subject: [PATCH] chore: fix build after applying pr suggestions --- packages/gateway-conformance/.aegir.js | 2 +- packages/gateway-conformance/src/demo-server.ts | 4 ++-- packages/gateway-conformance/src/fixtures/basic-server.ts | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/gateway-conformance/.aegir.js b/packages/gateway-conformance/.aegir.js index 911e360c..12b43e9e 100644 --- a/packages/gateway-conformance/.aegir.js +++ b/packages/gateway-conformance/.aegir.js @@ -22,7 +22,7 @@ export default { const IPFS_NS_MAP = await loadKuboFixtures(repoPath) const kuboGateway = gatewayUrl - const { startBasicServer } = await import('./dist/src/fixtures/basic-server.js') + const { startVerifiedFetchGateway } = await import('./dist/src/fixtures/basic-server.js') const stopBasicServer = await startVerifiedFetchGateway({ serverPort: SERVER_PORT, kuboGateway, diff --git a/packages/gateway-conformance/src/demo-server.ts b/packages/gateway-conformance/src/demo-server.ts index 8f4a4b4c..9c5e44e7 100644 --- a/packages/gateway-conformance/src/demo-server.ts +++ b/packages/gateway-conformance/src/demo-server.ts @@ -3,7 +3,7 @@ */ import { logger } from '@libp2p/logger' import getPort from 'aegir/get-port' -import { startBasicServer } from './fixtures/basic-server.js' +import { startVerifiedFetchGateway } from './fixtures/basic-server.js' import { createKuboNode } from './fixtures/create-kubo.js' import { loadKuboFixtures } from './fixtures/kubo-mgmt.js' @@ -17,7 +17,7 @@ const kuboGateway = gatewayUrl await controller.start() const IPFS_NS_MAP = await loadKuboFixtures(repoPath) -const stopServer = await startBasicServer({ +const stopServer = await startVerifiedFetchGateway({ serverPort: SERVER_PORT, kuboGateway, IPFS_NS_MAP diff --git a/packages/gateway-conformance/src/fixtures/basic-server.ts b/packages/gateway-conformance/src/fixtures/basic-server.ts index b7bee853..4f94958f 100644 --- a/packages/gateway-conformance/src/fixtures/basic-server.ts +++ b/packages/gateway-conformance/src/fixtures/basic-server.ts @@ -150,7 +150,6 @@ async function callVerifiedFetch (req: IncomingMessage, res: Response, { serverP } else { // read the body of the response and write it to the response from the server const reader = resp.body.getReader() - reader.pipeTo(res) while (true) { const { done, value } = await reader.read() if (done) {