summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-readv-sync.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-readv-sync.js')
-rw-r--r--test/parallel/test-fs-readv-sync.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-fs-readv-sync.js b/test/parallel/test-fs-readv-sync.js
index f5bb448f92..92aa2fb681 100644
--- a/test/parallel/test-fs-readv-sync.js
+++ b/test/parallel/test-fs-readv-sync.js
@@ -3,6 +3,7 @@
require('../common');
const assert = require('assert');
const fs = require('fs');
+const path = require('path');
const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
@@ -12,7 +13,7 @@ const expected = 'ümlaut. Лорем 運務ホソモ指及 आपको कर
const exptectedBuff = Buffer.from(expected);
const expectedLength = exptectedBuff.length;
-const filename = 'readv_sync.txt';
+const filename = path.join(tmpdir.path, 'readv_sync.txt');
fs.writeFileSync(filename, exptectedBuff);
const allocateEmptyBuffers = (combinedLength) => {