Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yoozo committed Oct 16, 2024
1 parent 1a595f2 commit c00b27e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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"}');
Expand Down
4 changes: 1 addition & 3 deletions test/subgraph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -504,7 +504,6 @@ describe("subgraph plugin test", () => {
startHeight
indexerHealthy
indexerNodeVersion
queryNodeVersion
evmChainId
deployments
lastFinalizedVerifiedHeight
Expand Down Expand Up @@ -540,7 +539,6 @@ describe("subgraph plugin test", () => {
"lastProcessedTimestamp": "1725960100839",
"latestSyncedPoiHeight": null,
"queryNodeStyle": "subgraph",
"queryNodeVersion": "0.1.0",
"specName": "polkadot",
"startHeight": 1,
"targetHeight": 22472571,
Expand Down

0 comments on commit c00b27e

Please sign in to comment.