diff --git a/test/fixtures/testcodes.txt b/test/fixtures/testcodes.txt deleted file mode 100644 index ee860ba0d59f61..00000000000000 --- a/test/fixtures/testcodes.txt +++ /dev/null @@ -1,12 +0,0 @@ -QXFPEEPNAT -ZIEEVVEZCU -CUPUMUEUPR -ISMNOTJCYG -TBKEWVBWRH -GAXHUDAUAZ -QFYWDRFDVA -WJOPKBXPMK -RZAIQNZQZK -OIRPQKIQDU -OONZZNMZNH -TPBPBPKHPQ \ No newline at end of file diff --git a/test/parallel/test-fs-read-empty-buffer.js b/test/parallel/test-fs-read-empty-buffer.js index 9d100b0c40618a..281d2675e72730 100644 --- a/test/parallel/test-fs-read-empty-buffer.js +++ b/test/parallel/test-fs-read-empty-buffer.js @@ -3,7 +3,7 @@ require('../common'); const fixtures = require('../common/fixtures'); const assert = require('assert'); const fs = require('fs'); -const filepath = fixtures.path('testcodes.txt'); +const filepath = fixtures.path('x.txt'); const fd = fs.openSync(filepath, 'r'); const buffer = new Uint8Array(); @@ -12,5 +12,7 @@ assert.throws( () => fs.readSync(fd, buffer, 0, 10, 0), { code: 'ERR_INVALID_ARG_VALUE', + message: 'The argument \'buffer\' is empty and cannot be written. ' + + 'Received Uint8Array [ ]' } );