Skip to content

Commit 6595367

Browse files
LiviaMedeirosRafaelGSS
authored andcommittedAug 17, 2023
test: use tmpdir.resolve()
Subsystems: blob, child_process, common, crypto, http, http2, readline, repl, snapshot, trace_events PR-URL: #49127 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
1 parent 661b055 commit 6595367

File tree

60 files changed

+92
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+92
-154
lines changed
 

‎test/parallel/test-blob-file-backed.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ const {
1515
const {
1616
unlink
1717
} = require('fs/promises');
18-
const path = require('path');
1918
const { Blob } = require('buffer');
2019

2120
const tmpdir = require('../common/tmpdir');
22-
const testfile = path.join(tmpdir.path, 'test-file-backed-blob.txt');
23-
const testfile2 = path.join(tmpdir.path, 'test-file-backed-blob2.txt');
24-
const testfile3 = path.join(tmpdir.path, 'test-file-backed-blob3.txt');
21+
const testfile = tmpdir.resolve('test-file-backed-blob.txt');
22+
const testfile2 = tmpdir.resolve('test-file-backed-blob2.txt');
23+
const testfile3 = tmpdir.resolve('test-file-backed-blob3.txt');
2524
tmpdir.refresh();
2625

2726
const data = `${'a'.repeat(1000)}${'b'.repeat(2000)}`;

‎test/parallel/test-child-process-fork-exec-path.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ const common = require('../common');
2727
const tmpdir = require('../common/tmpdir');
2828
const { addLibraryPath } = require('../common/shared-lib-util');
2929
const assert = require('assert');
30-
const path = require('path');
3130
const fs = require('fs');
3231
const { fork } = require('child_process');
3332

3433
const msg = { test: 'this' };
3534
const nodePath = process.execPath;
36-
const copyPath = path.join(tmpdir.path, 'node-copy.exe');
35+
const copyPath = tmpdir.resolve('node-copy.exe');
3736

3837
addLibraryPath(process.env);
3938

0 commit comments

Comments
 (0)