diff options
author | Daniel Pihlstrom <sciolist.se@gmail.com> | 2017-04-23 01:55:35 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2017-05-25 18:04:23 -0400 |
commit | a109032260148242fa1f1b911a1a8a142ce95d86 (patch) | |
tree | a403777ade045a305b7310907695e04c312a1fcd /test/parallel/test-fs-utimes.js | |
parent | 4384f2e2b7451c93b72520cbff55c94f5a1331d8 (diff) | |
download | android-node-v8-a109032260148242fa1f1b911a1a8a142ce95d86.tar.gz android-node-v8-a109032260148242fa1f1b911a1a8a142ce95d86.tar.bz2 android-node-v8-a109032260148242fa1f1b911a1a8a142ce95d86.zip |
src,fs: calculate fs times without truncation
also added some missing bits that didn't make it into #12818
PR-URL: https://github.com/nodejs/node/pull/12607
Refs: https://github.com/nodejs/node/pull/12818
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-utimes.js')
-rw-r--r-- | test/parallel/test-fs-utimes.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/parallel/test-fs-utimes.js b/test/parallel/test-fs-utimes.js index 456f09b804..f5eaf282f5 100644 --- a/test/parallel/test-fs-utimes.js +++ b/test/parallel/test-fs-utimes.js @@ -143,15 +143,21 @@ function testIt(atime, mtime, callback) { const stats = fs.statSync(__filename); // run tests -const runTest = common.mustCall(testIt, 5); +const runTest = common.mustCall(testIt, 6); runTest(new Date('1982-09-10 13:37'), new Date('1982-09-10 13:37'), function() { runTest(new Date(), new Date(), function() { runTest(123456.789, 123456.789, function() { runTest(stats.mtime, stats.mtime, function() { - runTest('123456', -1, common.mustCall(function() { - // done - })); + runTest('123456', -1, function() { + runTest( + new Date('2017-04-08T17:59:38.008Z'), + new Date('2017-04-08T17:59:38.008Z'), + common.mustCall(function() { + // done + }) + ); + }); }); }); }); |