From 0782c249931425398c9c7c6f16ca5344176c3703 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Thu, 12 Mar 2015 10:46:15 +0100 Subject: [PATCH] test: fix readfile-zero-byte-liar test PR-URL: https://github.com/iojs/io.js/pull/1074 Reviewed-By: Bert Belder --- test/parallel/test-fs-readfile-zero-byte-liar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-readfile-zero-byte-liar.js b/test/parallel/test-fs-readfile-zero-byte-liar.js index c30ff9a1dd..532459305c 100644 --- a/test/parallel/test-fs-readfile-zero-byte-liar.js +++ b/test/parallel/test-fs-readfile-zero-byte-liar.js @@ -17,7 +17,7 @@ fs.fstat = function(fd, cb) { }; fs.fstatSync = function(fd) { - var st = fs._fstatSync; + var st = fs._fstatSync(fd); st.size = 0; return st; };