Skip to content

Commit

Permalink
chore: dont close men ow
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Feb 16, 2024
1 parent 618b673 commit 9624b4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"start": "yarn build && node --max-http-header-size=32768 dist/server.js",
"start-mainnet": "cross-env-shell NODE_ENV=mainnet \"yarn start\"",
"start-testnet": "cross-env-shell NODE_ENV=testnet \"yarn start\"",
"test": "cross-env NODE_OPTIONS='--max-http-header-size 32768' NODE_ENV=test vitest",
"test": "cross-env NODE_OPTIONS='--max-http-header-size 32768' NODE_ENV=test vitest --run",
"test-badges": "make-coverage-badge --output-path ./docs/images/badge.svg",
"type-check": "tsc --project tsconfig.json"
},
Expand Down
15 changes: 8 additions & 7 deletions test/unit/server-token-registry.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import express from 'express';
import { Server } from 'http';
// import { Server } from 'http';
import * as mocks from './fixtures/token-registry.fixtures.js';

let server: Server;
// let server: Server;
const serverName = 'token registry server';
const port = 3100;

Expand All @@ -17,10 +17,11 @@ export const setup = () => {
},
);

server = app.listen({ port });
// server = app.listen({ port });
app.listen({ port });
};

export const teardown = () => {
console.log(`Closing ${serverName} mock on port ${port}`);
server.close();
};
// export const teardown = () => {
// console.log(`Closing ${serverName} mock on port ${port}`);
// // server.close();
// };

0 comments on commit 9624b4a

Please sign in to comment.