Skip to content

Commit bb3b1ba

Browse files
authored
Merge pull request #675 from crazy-max/undock-fix-itg
undock: fix integration test
2 parents ea697eb + 1bfdd1d commit bb3b1ba

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

__tests__/undock/undock.test.itg.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@
1717
import {describe, expect, it} from '@jest/globals';
1818
import fs from 'fs';
1919
import os from 'os';
20-
import path from 'path';
2120

2221
import {Undock} from '../../src/undock/undock';
2322
import {Install as UndockInstall} from '../../src/undock/install';
2423

25-
const tmpDir = fs.mkdtempSync(path.join(process.env.TEMP || os.tmpdir(), 'undock-itg-'));
26-
2724
describe('run', () => {
2825
it('extracts moby/moby-bin:26.1.5', async () => {
2926
const install = new UndockInstall();
@@ -41,9 +38,8 @@ describe('run', () => {
4138
(async () => {
4239
// prettier-ignore
4340
await undock.run({
44-
source: 'moby/moby-bin:26.1.5',
45-
dist: tmpDir,
46-
all: true
41+
source: 'docker/buildx-bin:0.23.0',
42+
dist: os.tmpdir()
4743
});
4844
})()
4945
).resolves.not.toThrow();

0 commit comments

Comments
 (0)