Skip to content

Commit a7a70fa

Browse files
lpincatargos
authored andcommitted
test: save test file in temporary directory
The readv_sync.txt test file is currenly saved in the root directory. Save it in the dedicated temporary directory. PR-URL: #32670 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 6b32877 commit a7a70fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-fs-readv-sync.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require('../common');
44
const assert = require('assert');
55
const fs = require('fs');
6+
const path = require('path');
67
const tmpdir = require('../common/tmpdir');
78

89
tmpdir.refresh();
@@ -12,7 +13,7 @@ const expected = 'ümlaut. Лорем 運務ホソモ指及 आपको कर
1213
const exptectedBuff = Buffer.from(expected);
1314
const expectedLength = exptectedBuff.length;
1415

15-
const filename = 'readv_sync.txt';
16+
const filename = path.join(tmpdir.path, 'readv_sync.txt');
1617
fs.writeFileSync(filename, exptectedBuff);
1718

1819
const allocateEmptyBuffers = (combinedLength) => {

0 commit comments

Comments
 (0)