Browse Source

test: fix var redeclarations in test-fs-*

PR-URL: https://github.com/nodejs/node/pull/4986
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
v5.x
Rich Trott 9 years ago
committed by Rod Vagg
parent
commit
835bf13c1d
  1. 2
      test/parallel/test-fs-utimes.js
  2. 1
      test/parallel/test-fs-write-file.js

2
test/parallel/test-fs-utimes.js

@ -18,7 +18,7 @@ function stat_resource(resource) {
}
function check_mtime(resource, mtime) {
var mtime = fs._toUnixTimestamp(mtime);
mtime = fs._toUnixTimestamp(mtime);
var stats = stat_resource(resource);
var real_mtime = fs._toUnixTimestamp(stats.mtime);
// check up to single-second precision

1
test/parallel/test-fs-write-file.js

@ -71,7 +71,6 @@ fs.writeFile(filename3, n, { mode: m }, function(e) {
// test that writeFile accepts file descriptors
var filename4 = join(common.tmpDir, 'test4.txt');
var buf = new Buffer(s, 'utf8');
fs.open(filename4, 'w+', function(e, fd) {
if (e) throw e;

Loading…
Cancel
Save