test: fix time resolution constraint
authorGireesh Punathil <gpunathi@in.ibm.com>
Mon, 23 Nov 2015 09:28:13 +0000 (04:28 -0500)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:15 +0000 (11:52 -0800)
commit3f0ff879cf441d5b2291c06cd9ab8af182f68223
treeffa74a79349f54f9f76121dc5d071462cb6c00aa
parent22b88e1c48ae9073b0aef3eda6ecbddee7da456b
test: fix time resolution constraint

The modification time of a file is assumed to happen at the
exact time when it was requested. As the utime API specification
delcares that the resolution of the result is 1 second,
relax the constrain to 1 second helps the test case to be
robust and consistent under different load conditions in the system

PR-URL: https://github.com/nodejs/node/pull/3981
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
test/parallel/test-fs-utimes.js