summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-read-buffer-zero-length.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-read-buffer-zero-length.js')
-rw-r--r--test/parallel/test-fs-read-buffer-zero-length.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/parallel/test-fs-read-buffer-zero-length.js b/test/parallel/test-fs-read-buffer-zero-length.js
deleted file mode 100644
index 35b1f7b566..0000000000
--- a/test/parallel/test-fs-read-buffer-zero-length.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-const common = require('../common');
-const assert = require('assert');
-const path = require('path');
-const Buffer = require('buffer').Buffer;
-const fs = require('fs');
-const filepath = path.join(common.fixturesDir, 'x.txt');
-const fd = fs.openSync(filepath, 'r');
-const bufferAsync = Buffer.alloc(0);
-const bufferSync = Buffer.alloc(0);
-
-fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall(function(err, bytesRead) {
- assert.equal(bytesRead, 0);
- assert.deepStrictEqual(bufferAsync, Buffer.alloc(0));
-}));
-
-const r = fs.readSync(fd, bufferSync, 0, 0, 0);
-assert.deepStrictEqual(bufferSync, Buffer.alloc(0));
-assert.equal(r, 0);