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>
This commit is contained in:
parent
5f44475b5a
commit
754bcff73e
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user