Skip to content

Commit

Permalink
fix docker test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Sep 12, 2024
1 parent e69e2d3 commit fbed500
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"types": "src/index.ts",
"scripts": {
"compile": "virmator compile",
"test": "virmator --no-deps test node --test-concurrency 1",
"test:coverage": "virmator test node coverage --test-concurrency 1",
"test": "npm i @prisma/client && virmator --no-deps test node --test-concurrency 1",
"test:coverage": "npm i @prisma/client && virmator test node coverage --test-concurrency 1",
"test:update": "npm test"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/node/src/docker/containers/run-container.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export async function runMockLongLivingContainer(
'-t',
],
command: 'sh',
platform: 'linux',
...args,
});
}
3 changes: 3 additions & 0 deletions packages/node/src/docker/containers/run-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe(
detach: false,
imageName: testImageName,
removeWhenDone: true,
platform: 'linux',
});
await docker.container.waitUntilExited(testContainerName);
});
Expand All @@ -37,6 +38,7 @@ describe(
detach: true,
imageName: testImageName,
removeWhenDone: true,
platform: 'linux',
});
await docker.container.waitUntilExited(testContainerName);
});
Expand All @@ -51,6 +53,7 @@ describe(
useCurrentUser: true,
removeWhenDone: true,
command: 'random-command-this-does-not-exist-please-electrovir',
platform: 'linux',
}),
{
matchMessage:
Expand Down

0 comments on commit fbed500

Please sign in to comment.