From c00b27e9e18660800c7a6a0b495e028de2e261f1 Mon Sep 17 00:00:00 2001 From: Tate Date: Wed, 16 Oct 2024 07:24:50 +0000 Subject: [PATCH] fix unit test --- src/server.ts | 2 -- test/subgraph.test.ts | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/server.ts b/src/server.ts index c10899e..d603980 100644 --- a/src/server.ts +++ b/src/server.ts @@ -5,7 +5,6 @@ import { createServer } from 'node:http'; import express from 'express'; import { grafserv } from 'grafserv/express/v4'; import { postgraphile } from 'postgraphile'; -// import { grafserv } from 'postgraphile/grafserv/node'; import { genPreset, ArgsInterface } from './config/index'; export function startServer(args: ArgsInterface) { @@ -15,7 +14,6 @@ export function startServer(args: ArgsInterface) { const app = express(); app.use((req, res, next) => { - console.log(req.url); if (req.url === '/.well-known/apollo/server-health') { res.setHeader('Content-Type', 'application/health+json'); res.end('{"status":"pass"}'); diff --git a/test/subgraph.test.ts b/test/subgraph.test.ts index e499821..2433040 100644 --- a/test/subgraph.test.ts +++ b/test/subgraph.test.ts @@ -124,7 +124,7 @@ describe("subgraph plugin test", () => { queryTimeout: '3000', } as ArgsInterface); - apolloClient = new ApolloClient({ uri: 'http://localhost:3001/graphql', cache: new InMemoryCache({ addTypename: false }) }); + apolloClient = new ApolloClient({ uri: 'http://localhost:3001', cache: new InMemoryCache({ addTypename: false }) }); }); afterAll(async () => { @@ -504,7 +504,6 @@ describe("subgraph plugin test", () => { startHeight indexerHealthy indexerNodeVersion - queryNodeVersion evmChainId deployments lastFinalizedVerifiedHeight @@ -540,7 +539,6 @@ describe("subgraph plugin test", () => { "lastProcessedTimestamp": "1725960100839", "latestSyncedPoiHeight": null, "queryNodeStyle": "subgraph", - "queryNodeVersion": "0.1.0", "specName": "polkadot", "startHeight": 1, "targetHeight": 22472571,