Skip to content

Commit

Permalink
test: avoid colliding sandboxes (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth authored Oct 22, 2023
1 parent b8193a7 commit 933955a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/npm/test-npm-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { npmContext } from '../helpers/make-context.js';
const { test } = tap;
const __dirname = dirname(fileURLToPath(import.meta.url));

const sandbox = join(tmpdir(), `citgm-${Date.now()}`);
const sandbox = join(tmpdir(), `citgm-${Date.now()}-npm-install`);
const fixtures = join(__dirname, '..', 'fixtures');
const moduleFixtures = join(fixtures, 'omg-i-pass');
const moduleTemp = join(sandbox, 'omg-i-pass');
Expand Down
2 changes: 1 addition & 1 deletion test/npm/test-npm-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { test as packageManagerTest } from '../../lib/package-manager/test.js';
const { test } = tap;
const __dirname = dirname(fileURLToPath(import.meta.url));

const sandbox = join(tmpdir(), `citgm-${Date.now()}`);
const sandbox = join(tmpdir(), `citgm-${Date.now()}-npm-test`);
const fixtures = join(__dirname, '..', 'fixtures');

const passFixtures = join(fixtures, 'omg-i-pass');
Expand Down
2 changes: 1 addition & 1 deletion test/reporter/test-reporter-junit.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const fixturesPath = join(
'..',
'fixtures'
);
const sandbox = join(tmpdir(), `citgm-${Date.now()}`);
const sandbox = join(tmpdir(), `citgm-${Date.now()}-test-reporter-junit`);
const outputFile = join(sandbox, 'test.xml');
const outputFileAppend = join(sandbox, 'test-append.xml');

Expand Down
2 changes: 1 addition & 1 deletion test/reporter/test-reporter-tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const fixturesPath = join(
'..',
'fixtures'
);
const sandbox = join(tmpdir(), `citgm-${Date.now()}`);
const sandbox = join(tmpdir(), `citgm-${Date.now()}-test-reporter-tap`);
const outputFile = join(sandbox, 'test.tap');
const outputFileAppend = join(sandbox, 'test-append.tap');
const outputFileAppendBlank = join(sandbox, 'test-append-blank.tap');
Expand Down
2 changes: 1 addition & 1 deletion test/test-grab-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { grabProject } from '../lib/grab-project.js';
const { test } = tap;

const __dirname = dirname(fileURLToPath(import.meta.url));
const sandbox = join(tmpdir(), `citgm-${Date.now()}`);
const sandbox = join(tmpdir(), `citgm-${Date.now()}-grab-project`);
const fixtures = join(__dirname, 'fixtures');

test('grab-project: setup', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/test-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { npmContext } from './helpers/make-context.js';

const { test } = tap;

const sandbox = join(tmpdir(), `citgm-${Date.now()}`);
const sandbox = join(tmpdir(), `citgm-${Date.now()}-test-timeout`);

let packageManagers;

Expand Down
2 changes: 1 addition & 1 deletion test/yarn/test-yarn-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { npmContext } from '../helpers/make-context.js';

const { test } = tap;

const sandbox = join(tmpdir(), `citgm-${Date.now()}`);
const sandbox = join(tmpdir(), `citgm-${Date.now()}-yarn-install`);
const fixtures = join(
dirname(fileURLToPath(import.meta.url)),
'..',
Expand Down
2 changes: 1 addition & 1 deletion test/yarn/test-yarn-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { test as packageManagerTest } from '../../lib/package-manager/test.js';

const __dirname = dirname(fileURLToPath(import.meta.url));

const sandbox = join(tmpdir(), `citgm-${Date.now()}`);
const sandbox = join(tmpdir(), `citgm-${Date.now()}-yarn-test`);
const fixtures = join(__dirname, '..', 'fixtures');

const passFixtures = join(fixtures, 'omg-i-pass');
Expand Down

0 comments on commit 933955a

Please sign in to comment.