Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Buldauskas committed Nov 8, 2023
1 parent a674c19 commit b99b3bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/server.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test.before(async (t) => {
try {
t.context.server = await server({
port: SERVER_PORT,
nodeProcess: { on() {}, exit() {} },
nodeProcess: { on() {}, exit() {}, pid: '0' },
});

// Setup a tiny server
Expand Down Expand Up @@ -199,7 +199,7 @@ test.serial('pause', async (t) => {
});

// NOTE: This does work but needs a better cache mock
test('server - reset', async (t) => {
test.serial('server - reset', async (t) => {
t.assert(t.context.server, `Server init error: ${t.context.error?.stack}`);

const cacheDir = path.join(PROJECT_ROOT, 'src', '__mocks__', 'cache-dir');
Expand Down

0 comments on commit b99b3bb

Please sign in to comment.